Acquire weekly Albuquerque building permits #214
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 weekly Albuquerque building permits | |
on: | |
schedule: | |
- cron: '0 22 * * SUN' | |
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 abq-building-permits/1-acquire-permit-data.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 ABQ building permits csv | |
email_username: ${{ secrets.EMAIL_USERNAME }} | |
username: ${{ secrets.USERNAME }} |