schema-update.yml 860 B

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