Skip to content

Commit

Permalink
Create greetings.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eightchbomb authored Oct 2, 2023
1 parent 0d00bf6 commit bf9f473
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/greetings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: NPR Scraper

on:
schedule:
- cron: '0 */1 * * *' # Run every hour
workflow_dispatch:

jobs:
scrape_and_generate:
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.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run scraper
run: python npr_corrections_scraper.py

- name: Commit and push changes
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git commit -m "Update RSS feed" || echo "No changes to commit"
git push

0 comments on commit bf9f473

Please sign in to comment.