Skip to content

Update feed cache

Update feed cache #88

Workflow file for this run

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