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@v5
18 with:
19 go-version-file: go.mod
20 - run: go run ./cmd/openrouter/main.go
21 - uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v5
22 with:
23 commit_message: "chore: auto-update generated files"
24 branch: main
25 commit_user_name: actions-user
26 commit_user_email: actions@github.com
27 commit_author: actions-user <actions@github.com>