Skip to content

update Pipfile and combine cron statements #10

update Pipfile and combine cron statements

update Pipfile and combine cron statements #10

Workflow file for this run

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
pip install -r requirements.txt
- name: Set PYTHONPATH
run: echo "PYTHONPATH=./scripts" >> $GITHUB_ENV
- name: Run report script
run: |
python scripts/3-report/gcs_reports.py
- name: Fetch and merge changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python scripts/shared.py --operation fetch_and_merge --branch fetch-automation
- name: Add and commit changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python scripts/shared.py --operation add_and_commit --message "Automated data report and commit"
- name: Push changes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python scripts/shared.py --operation push