Skip to content

Updated article - for testing the RSS feeds generation #13

Updated article - for testing the RSS feeds generation

Updated article - for testing the RSS feeds generation #13

Workflow file for this run

name: Generate RSS Feed for docs
on:
push:
branches: [ main ]
paths:
- 'docs/**/*.pdf' # Only trigger on PDF changes in docs/
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Check out files
run: |
ls -al docs/
cat docs/rss.xml # Print the contents of rss.xml before script runs
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Generate RSS feed from PDFs
run: |
python generate_rss.py
- name: Check if rss.xml is modified
run: |
git diff docs/rss.xml # Show if the file has changed
- name: Commit and push updated rss.xml
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add docs/rss.xml
git commit -m "Update RSS feed with new article" || echo "No changes to commit"
git push