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