update.yml

 1name: Update Providerskj
 2
 3on:
 4  push:
 5    branches: [main]
 6    paths:
 7      - "internal/config/**"
 8
 9jobs:
10  update-schema:
11    runs-on: ubuntu-latest
12    permissions:
13      contents: write
14    steps:
15      - uses: actions/checkout@v4
16        with:
17          token: ${{ secrets.GITHUB_TOKEN }}
18      - uses: actions/setup-go@v5
19        with:
20          go-version-file: go.mod
21      - run: go run . ./cmd/openrouter/main.go
22      - uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v5
23        with:
24          commit_message: "chore: auto-update generated files"
25          branch: main
26          commit_user_name: actions-user
27          commit_user_email: actions@github.com
28          commit_author: actions-user <actions@github.com>