Skip to content

Commit

Permalink
adding git push to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeromard committed Nov 7, 2023
1 parent 796de49 commit d002434
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/markdown_to_rss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ name: Update RSS feed

on:
push:
branches: [ main ]
branches:
- main
paths:
- 'test_product_updates.md'

Expand All @@ -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 [email protected]
git add .
git commit -m "auto-updated test_rss_feed.xml"
git push
2 changes: 2 additions & 0 deletions test_product_updates.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d002434

Please sign in to comment.