Merge pull request #122 from creativecommons/refine-automation #25
Workflow file for this run
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: Generate Report | |
on: | |
push: | |
schedule: | |
# 1:15am onwards, days 1-20, third month of each quarter | |
- cron: '15 1,5,9,13,17,21,23 1-20 3,6,9,12 *' | |
workflow_dispatch: | |
jobs: | |
generate-report: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install pipenv | |
pipenv sync --system | |
- name: Set PYTHONPATH | |
run: echo "PYTHONPATH=./scripts" >> $GITHUB_ENV | |
- name: Run report script | |
run: | | |
python scripts/3-report/gcs_reports.py |