Files
2026-05-13 10:24:46 -03:00

30 lines
956 B
YAML

name: Update files
on:
push:
branches: [main]
paths:
- "internal/config/**"
- "internal/agent/hyper/**"
workflow_dispatch:
jobs:
update-schema:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- run: go run . schema > ./schema.json
- run: go generate ./internal/agent/hyper/...
- uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v5
with:
commit_message: "chore: auto-update files"
branch: main
commit_user_name: Charm
commit_user_email: 124303983+charmcli@users.noreply.github.com
commit_author: Charm <124303983+charmcli@users.noreply.github.com>