Update Releases Cache #26
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 Releases Cache | |
| on: | |
| repository_dispatch: | |
| types: [update-catalog-cache] | |
| schedule: | |
| - cron: '0 2 * * *' # 02:00 AM UTC everyday | |
| workflow_dispatch: | |
| concurrency: | |
| group: ci | |
| cancel-in-progress: false | |
| jobs: | |
| update-cache: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Fetch releases from GitHub API | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| gh api --paginate repos/nullcpy/rvb/releases > releases.json | |
| - name: Commit and push changes | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "update releases cache" | |
| file_pattern: releases.json |