Update feed cache #88
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 feed cache | |
| on: | |
| schedule: | |
| # Every 30 minutes | |
| - cron: "*/30 * * * *" | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| update-feed: | |
| runs-on: ubuntu-latest | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - name: Install dependencies | |
| run: npm ci || npm install | |
| - name: Build feed cache | |
| run: node scripts/build-feed.mjs | |
| - name: Commit updated feed cache | |
| run: | | |
| git config user.name "geekspulse-bot" | |
| git config user.email "actions@github.com" | |
| git add public/feed.json public/feed-health.json | |
| git diff --staged --quiet && echo "No changes to feed cache" || git commit -m "chore: update feed cache [skip ci]" | |
| git push | |