Update outdated API data #114
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update outdated API data | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 * * 0" # Sunday midnight | |
| env: | |
| GO_VERSION: "1.24" | |
| jobs: | |
| update-outdated-api: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| token: ${{ secrets.AUTO_COMMIT_TOKEN }} | |
| - uses: actions/setup-go@v6 | |
| with: | |
| go-version: ${{ env.GO_VERSION }} | |
| - name: Update Outdated API Data | |
| run: make update-outdated-api | |
| - name: Format Rego Files | |
| run: make fmt-rego | |
| - name: Push Changes | |
| uses: stefanzweifel/git-auto-commit-action@v6 | |
| with: | |
| commit_message: "Update outdated API data" | |
| push_options: --force |