diff --git a/.github/workflows/markdown_to_rss.yml b/.github/workflows/markdown_to_rss.yml index 48b9a82..d0d55cb 100644 --- a/.github/workflows/markdown_to_rss.yml +++ b/.github/workflows/markdown_to_rss.yml @@ -2,7 +2,8 @@ name: Update RSS feed on: push: - branches: [ main ] + branches: + - main paths: - 'test_product_updates.md' @@ -17,7 +18,14 @@ jobs: with: python-version: '3.9' - name: install python packages - run: + run: | + python -m pip install --upgrade pip pip install -r requirements.txt - name: run markdown_to_rss.py script - run: python markdown_to_rss.py + run: | + python markdown_to_rss.py + git config user.name github-actions + git config user.email github-actions@github.com + git add . + git commit -m "auto-updated test_rss_feed.xml" + git push diff --git a/test_product_updates.md b/test_product_updates.md index 32734fe..6c431a3 100644 --- a/test_product_updates.md +++ b/test_product_updates.md @@ -10,6 +10,8 @@ Testing to see if the workflow is triggered and runs successfully when I update First attempt failed on `pip install -r requirements`. That command is missing the file extension (the file is `requirements.txt`, not `requirements`). Trying again. +Second attempt, the workflow completed without error, but didn't update `test_rss_feed.xml`. Trying to add `git push` to the workflow. + ## 03 November 2023 Alpha