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.PERSONAL_ACCESS_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/aihubmix/main.go
23 go run ./cmd/avian/main.go
24 go run ./cmd/huggingface/main.go
25 go run ./cmd/ionet/main.go
26 go run ./cmd/openrouter/main.go
27 go run ./cmd/synthetic/main.go
28 go run ./cmd/venice/main.go
29 go run ./cmd/vercel/main.go
30 - uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v5
31 with:
32 commit_message: "chore: auto-update generated files"
33 branch: main
34 commit_user_name: Charm
35 commit_user_email: 124303983+charmcli@users.noreply.github.com
36 commit_author: Charm <124303983+charmcli@users.noreply.github.com>