1name: Update files
2
3on:
4 push:
5 branches: [main]
6 paths:
7 - "internal/config/**"
8 - "internal/agent/hyper/**"
9 workflow_dispatch:
10
11jobs:
12 update-schema:
13 runs-on: ubuntu-latest
14 steps:
15 - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
16 with:
17 token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
18 - uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
19 with:
20 go-version-file: go.mod
21 - run: go run . schema > ./schema.json
22 - run: go generate ./internal/agent/hyper/...
23 - uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v5
24 with:
25 commit_message: "chore: auto-update files"
26 branch: main
27 commit_user_name: Charm
28 commit_user_email: 124303983+charmcli@users.noreply.github.com
29 commit_author: Charm <124303983+charmcli@users.noreply.github.com>