Skip to content

Acquire weekly U.S. Drought Monitor maps #188

Acquire weekly U.S. Drought Monitor maps

Acquire weekly U.S. Drought Monitor maps #188

name: Acquire weekly U.S. Drought Monitor maps
on:
schedule:
- cron: '0 15 * * 4'
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-drought-maps/1-acquire-current-nm-drought-map.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 drought map from U.S. Drought Monitor
email_username: ${{ secrets.EMAIL_USERNAME }}
username: ${{ secrets.USERNAME }}