build: set git action on push #11
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 | |
on: | |
push: | |
schedule: | |
- cron: "0 8 * * *" # 8 a.m. every day UTC | |
workflow_dispatch: | |
jobs: | |
scrape: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- run: pip install pandas requests | |
- name: Run scraper | |
run: python3 scrape.py | |
- name: Add and commit | |
run: |- | |
git add . | |
git config user.name "Automated" | |
git config user.email "[email protected]" | |
git commit -m "feat: Latest data" | |
- name: Push | |
run: git push |