-
Notifications
You must be signed in to change notification settings - Fork 55
38 lines (35 loc) · 1.06 KB
/
maiia_center_scrap.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
name: Maiia center scrap
on:
schedule:
- cron: "0 * * * *"
# Allow running manually
workflow_dispatch:
jobs:
scrape:
name: "Maiia 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: "Maiia scrap..."
run: make maiiascrap
- name: "Copy output file"
run: cp data/output/maiia_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 maiia_centers.json maiia_center_list.json
cp maiia_centers.json maiia_center_list.json data/output
- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Updated Maiia centers
push_options: '--force HEAD:data-auto'