ARCHIVED Scrape and Update News #2
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: Scrape and Update News | |
on: | |
- workflow_dispatch | |
#schedule: | |
#- cron: '*/30 * * * *' # Runs every 30 minutes | |
jobs: | |
scrape_and_update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repo | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install requests beautifulsoup4 | |
- name: Scrape news and update README | |
run: python ./scripts/scrape_news.py | |
- name: Commit and Push | |
run: | | |
git config --global user.name 'aryashah2k' | |
git config --global user.email 'arya.shah82@nmims.edu.in' | |
git add README.md | |
git commit -m "Update news README" | |
git push |