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