Skip to content

Collect RSS Feeds

Collect RSS Feeds #3

Workflow file for this run

name: Collect RSS Feeds
on:
schedule:
- cron: '0 5 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
collect:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Bun
uses: oven-sh/setup-bun@v2
- name: Install dependencies
run: bun install
- name: Discover new RSS feed URLs
run: bun run scripts/populate-rss.ts
- name: Fetch and cache feed content
run: bun run scripts/fetch-feeds.ts
- name: Commit changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add data/products/ data/feeds/
if git diff --staged --quiet; then
echo "No changes to commit."
else
git commit -m "chore: refresh RSS feed cache [skip ci]"
git push
fi