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