2
0

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@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
  12. with:
  13. token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
  14. - uses: actions/setup-go@4dc6199c7b1a012772edbd06daecab0f50c9053c # v6.1.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]>