Fetch data #17
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: Fetch data | |
on: | |
schedule: | |
- cron: "5 5 * * *" | |
jobs: | |
fetch: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
cache: "pip" | |
- name: Setup dependencies | |
run: pip install -r requirements.txt | |
- name: Get data | |
run: | | |
python script/agora.py > src/data/venues/agora.json | |
python script/beachland.py > src/data/venues/beachland.json | |
python script/grog-shop.py > src/data/venues/grogshop.json | |
python script/hob.py > src/data/venues/hob.json | |
python script/mahalls.py > src/data/venues/mahalls.json | |
python script/no-class.py > src/data/venues/no-class.json | |
- name: Merge data | |
run: python script/merge.py | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: 🤖 press Ⓧ to json | |
branch: ${{ github.head_ref }} |