Skip to content

Update rss_gen.yml

Update rss_gen.yml #2

Workflow file for this run

name: Generate and Commit RSS Feed
on:
push:
branches:
- stage
jobs:
generate_rss_feed:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install beautifulsoup4 feedgen pytz requests
- name: Generate RSS Feed
run: python generate_rss.py
- name: Commit and Push Changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
git add blog_rss_feed.xml
git commit -m "Update RSS feed"
git push origin HEAD