-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (33 loc) · 1.3 KB
/
acquire_abq_cannabis_approvals.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Acquire daily Albuquerque cannabis retail location approvals
# Controls when the action will run.
on:
schedule:
# every day at 8:45 pm UTC/2:55 PM in Albuquerque, NM
- cron: '15 22 * * *'
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-cannabis-retail-location-approvals/1-acquire-daily-abq-abq-cannabis-retail-approvals.py
- name: Run
run: |
pipenv run python abq-cannabis-retail-location-approvals/2-convert-daily-abq-abq-cannabis-retail-approvals.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 abq-cannabis-retail-location-approvals
email_username: ${{ secrets.EMAIL_USERNAME }}
username: ${{ secrets.USERNAME }}