Auto Update #88498
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: Auto Update | |
on: | |
schedule: | |
- cron: '*/20 * * * *' | |
jobs: | |
update: | |
name: Update Data | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Update Sources | |
run: ./bin/update_sources.sh | |
- name: Commit Sources Data | |
run: | | |
if git diff --name-only data/*.csv data/france-*.json data/vaccines.json | grep . ; then | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git commit -m "update sources data" data/*.csv data/france-*.json data/vaccines.json | |
fi | |
- name: Build Viz Data | |
run: ./bin/export-main-countries.py | |
- name: Commit & Push Viz Data | |
run: | | |
if git diff data/coronavirus-countries.json | grep . > /dev/null ; then | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git commit -m "update viz data" data/coronavirus-countries.json | |
git push | |
fi | |