Skip to content

Commit 25ecb45

Browse files
author
dalj8690
committed
Updated the script for pipeline jobs
1 parent 3407952 commit 25ecb45

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/rss-generator.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff 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-

0 commit comments

Comments
 (0)