Acquire biweekly data used to determine New Mexico's Covid-19 tiers #188
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: Acquire biweekly data used to determine New Mexico's Covid-19 tiers | |
on: | |
schedule: | |
- cron: '0 16 * * 3' | |
workflow_dispatch: | |
jobs: | |
acquire_csv: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE | |
# so your job can access it | |
- uses: actions/checkout@main | |
# https://github.com/marketplace/actions/install-python-pipenv-and-pipfile-packages | |
- name: Install Python, pipenv and Pipfile packages | |
uses: palewire/install-python-pipenv-pipfile@v1 | |
with: | |
python-version: '3.10' | |
- name: Run | |
run: | | |
pipenv run python nm-red-to-green-framework/1-acquire-nm-framework-tiers.py | |
# If any new data was fetched, create a new commit to the repo. | |
- name: Commit data to repo. | |
uses: ./.github/actions/commit | |
if: always() | |
with: | |
message: Acquired latest NM county-level covid tiers | |
email_username: ${{ secrets.EMAIL_USERNAME }} | |
username: ${{ secrets.USERNAME }} |