schema-update.yml 935 B

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