Update Providers #125
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Providers | |
| on: | |
| schedule: | |
| - cron: "0 2 * * *" # Run nightly at 2 AM UTC | |
| workflow_dispatch: # Allow manual triggering | |
| jobs: | |
| update-schema: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: go.mod | |
| - run: go run ./cmd/openrouter/main.go | |
| # we need to add this back when we know that the providers/models all work | |
| # - run: go run ./cmd/huggingface/main.go | |
| - uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v5 | |
| with: | |
| commit_message: "chore: auto-update generated files" | |
| branch: main | |
| commit_user_name: Charm | |
| commit_user_email: [email protected] | |
| commit_author: Charm <[email protected]> |