Update game radar data #17
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 game radar data | |
| on: | |
| schedule: | |
| - cron: "17 */6 * * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| - name: Fetch latest Steam releases | |
| run: node scripts/update-game-radar.mjs | |
| - name: Commit updated data | |
| run: | | |
| git config user.name "game-radar-bot" | |
| git config user.email "game-radar-bot@users.noreply.github.com" | |
| git add game-radar-data.json | |
| git diff --cached --quiet || git commit -m "Update game radar data" | |
| git push |