Scraper #39
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: Scraper | |
on: | |
schedule: | |
- cron: "45 02 * * THU" # rerun at UTC 02:45 every Thursday | |
# allow manual trigger | |
workflow_dispatch: | |
permissions: | |
actions: write | |
contents: write | |
jobs: | |
scrape: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.9" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r scraper/requirements.txt | |
- name: Scrape data | |
run: make scrape | |
- name: Commit changes | |
run: | | |
git config --local user.name ${{ secrets.USER_NAME }} | |
git config --local user.email ${{ secrets.EMAIL }} | |
make push message="Scrape baby scrape" |