Skip to content

Generate RSS feeds

Generate RSS feeds #48

name: Generate RSS feeds
on:
schedule:
# Run every 3 hours at 41 minutes past (1:41, 4:41, 7:41, etc.)
- cron: "41 1/3 * * *"
workflow_dispatch:
permissions:
contents: write
jobs:
generate-and-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.14"
- name: Set up uv
uses: astral-sh/setup-uv@v5
- name: Generate feeds
run: uv run python generate_feeds.py --no-cache --skip-unchanged
- name: Commit and push updated feeds
env:
BRANCH_NAME: ${{ github.ref_name }}
run: |
if git diff --quiet -- feeds; then
echo "No feed changes to commit."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add feeds
git commit -m "chore: regenerate RSS feeds"
git push origin "${BRANCH_NAME}"