Keldoc center scrap #28506
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: Keldoc center scrap | |
on: | |
schedule: | |
- cron: "0 * * * *" | |
# Allow running manually | |
workflow_dispatch: | |
jobs: | |
scrape: | |
name: "Keldoc center scrap" | |
runs-on: "ubuntu-20.04" | |
steps: | |
- uses: "actions/checkout@v2" | |
with: | |
token: ${{ secrets.PAT_GRZ }} | |
- uses: "actions/setup-python@v2" | |
with: | |
python-version: "3.8" | |
- name: "Install" | |
run: make install | |
- name: "Keldoc scrap..." | |
run: make keldocscrap | |
- name: "Copy output file" | |
run: cp data/output/keldoc_centers.json . | |
- name: "Get folder from data-auto" | |
run: | | |
git clone --branch data-auto https://github.com/CovidTrackerFr/vitemadose.git tmp/ | |
cp -R tmp/data/output/* data/output | |
rm -rf tmp/ | |
cp keldoc_centers.json keldoc_center_list.json | |
cp keldoc_centers.json keldoc_center_list.json data/output | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Updated Keldoc centers | |
push_options: '--force HEAD:data-auto' |