Basic track: Updated the Callables: C++ vs Java article #10
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: 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: 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: 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 | |