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@v5
15        with:
16          token: ${{ secrets.GITHUB_TOKEN }}
17      - uses: actions/setup-go@v6
18        with:
19          go-version-file: go.mod
20      - run: go run ./cmd/openrouter/main.go
21      # we need to add this back when we know that the providers/models all work
22      # - run: go run ./cmd/huggingface/main.go
23      - uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v5
24        with:
25          commit_message: "chore: auto-update generated files"
26          branch: main
27          commit_user_name: actions-user
28          commit_user_email: actions@github.com
29          commit_author: actions-user <actions@github.com>