update.yml

 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/copilot/main.go
23          go run ./cmd/openrouter/main.go
24          go run ./cmd/synthetic/main.go
25          # we need to add this back when we know that the providers/models all work
26          # go run ./cmd/huggingface/main.go
27      - uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v5
28        with:
29          commit_message: "chore: auto-update generated files"
30          branch: main
31          commit_user_name: Charm
32          commit_user_email: 124303983+charmcli@users.noreply.github.com
33          commit_author: Charm <124303983+charmcli@users.noreply.github.com>