Skip to content

Generate and Commit RSS Feed #1895

Generate and Commit RSS Feed

Generate and Commit RSS Feed #1895

Workflow file for this run

name: Generate and Commit RSS Feed
on:
push:
branches:
- main
schedule:
- cron: "0 */6 * * *"
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 "[email protected]"
git config --global user.name "GitHub Action"
git add latest.rss
git commit -m "Update RSS feed"
git push origin HEAD