schema-update.yml 722 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@v4
  12. with:
  13. token: ${{ secrets.CRUSH_CLA_BOT }}
  14. - uses: actions/setup-go@v5
  15. with:
  16. go-version-file: go.mod
  17. - run: go run . schema > ./schema.json
  18. - uses: stefanzweifel/git-auto-commit-action@778341af668090896ca464160c2def5d1d1a3eb0 # v5
  19. with:
  20. commit_message: "chore: auto-update generated files"
  21. branch: main
  22. commit_user_name: actions-user
  23. commit_user_email: [email protected]
  24. commit_author: actions-user <[email protected]>