File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,21 +13,29 @@ jobs:
1313 steps :
1414 - name : Checkout repo
1515 uses : actions/checkout@v4
16+
17+ - name : Check out files
18+ run : |
19+ ls -al docs/
20+ cat docs/rss.xml # Print the contents of rss.xml before script runs
1621
1722 - name : Set up Python 3
1823 uses : actions/setup-python@v5
1924 with :
2025 python-version : ' 3.x'
21-
26+
2227 - name : Generate RSS feed from PDFs
2328 run : |
2429 python generate_rss.py
25-
30+
31+ - name : Check if rss.xml is modified
32+ run : |
33+ git diff docs/rss.xml # Show if the file has changed
34+
2635 - name : Commit and push updated rss.xml
2736 run : |
2837 git config user.name "github-actions[bot]"
2938 git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
3039 git add docs/rss.xml
3140 git commit -m "Update RSS feed with new article" || echo "No changes to commit"
3241 git push
33-
You can’t perform that action at this time.
0 commit comments