Skip to content

CI Download GR

CI Download GR #4414

Workflow file for this run

name: CI Download GR
on:
push:
paths:
- 'scripts/download_gr.py'
schedule:
- cron: '35 9/5 * * *'
workflow_dispatch:
inputs:
whotriggered:
description: 'Manual Trigger'
default: 'Why'
required: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout current repo
uses: actions/checkout@v2
- name: Get current directory and files
run: |
pwd
ls
- uses: actions/setup-python@v5
with:
python-version: '3.9' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- name: Install Python Requirements
run: |
python --version
pip install -r scripts/requirements.txt
- name: Download Records
run: |
python scripts/download_gr.py
ls dataset/daily/gr
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git pull
git status
git add .
git commit -m "Downloaded GR PDFs" || echo "Nothing to update"
git status
- name: Push changes
uses: ad-m/github-push-action@master
with:
repository: covid19-eu-zh/covid19-eu-data
branch: master
github_token: ${{ secrets.GITHUB_TOKEN }}