Skip to content

Auto Update

Auto Update #87299

Workflow file for this run

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