Merge branch 'main' of https://github.com/mikeromard/markdown-to-rss #10
This file contains 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: Update RSS feed | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'test_product_updates.md' | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v3 | |
- name: setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: install python packages | |
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 | |
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 |