1name: Update Providers
2
3on:
4 schedule:
5 - cron: "0 2 * * *" # Run nightly at 2 AM UTC
6 workflow_dispatch: # Allow manual triggering
7
8jobs:
9 update-schema:
10 runs-on: ubuntu-latest
11 permissions:
12 contents: write
13 steps:
14 - uses: actions/checkout@v6
15 with:
16 token: ${{ secrets.GITHUB_TOKEN }}
17 - uses: actions/setup-go@v6
18 with:
19 go-version-file: go.mod
20 - name: Generate provider configurations
21 run: |
22 go run ./cmd/openrouter/main.go
23 go run ./cmd/synthetic/main.go
24 # we need to add this back when we know that the providers/models all work
25 # go run ./cmd/huggingface/main.go
26 - uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v5
27 with:
28 commit_message: "chore: auto-update generated files"
29 branch: main
30 commit_user_name: Charm
31 commit_user_email: 124303983+charmcli@users.noreply.github.com
32 commit_author: Charm <124303983+charmcli@users.noreply.github.com>