Download COVID-19 Vaccine Coverage #7
This file contains hidden or 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: Download COVID-19 Vaccine Coverage | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 9 * * 1' | |
| jobs: | |
| update-rsv-data: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| sparse-checkout: | | |
| .github | |
| src | |
| auxiliary-data | |
| - name: Setup Python | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: pip install -r src/requirements.txt | |
| - name: Run Python | |
| run: | | |
| python src/vax_coverage.py | |
| - name: Commit | |
| run: | | |
| git config user.name Github-Actions | |
| git config user.email "<>" | |
| if [ -n "$(git status --porcelain)" ]; then | |
| git add . | |
| git commit -m "Update vax coverage $(date)" | |
| git push | |
| echo "Vax Coverage updated"; | |
| else | |
| echo "no updates"; | |
| fi |