Skip to content

Update mortality data #622

Update mortality data

Update mortality data #622

name: Update mortality data
on:
schedule:
- cron: '0 6 * * *'
jobs:
update:
name: update data
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@main
with:
ref: main
lfs: true
- name: setup python
uses: actions/setup-python@v1
with:
python-version: '3.9'
- name: install python and dependencies
run: |
python -m pip install --upgrade pip
pip install -r update/requirements.txt --force-reinstall
- name: run update script
id: run_update_script
run: |
python update/update.siahv.covid.py
- name: git status
id: git-status
run: |
git config --global user.email "[email protected]"
git config --global user.name "sociedatosbot"
echo ::set-output name=result::$(git status | tr -d "\n" | grep -c "nothing to commit")
- name: commit
if: steps.git-status.outputs.result == 0
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
git pull
git add -A
git commit -m "[ci] actualización siahv covid"
git push -q "https://[email protected]/sociedatos/bo-mortalidad.git" main