Skip to content

Daily run

Daily run #99

Workflow file for this run

name: "Daily run"
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
permissions:
contents: write
jobs:
pull_data:
runs-on: ubuntu-latest
env:
REPO_OWNER: ${{ github.repository_owner}}
REPO_BRANCH: ${{ github.ref_name }}
SERVICE_ACCOUNT_KEY_JSON: ${{ secrets.SERVICE_ACCOUNT_KEY_JSON }}
GDRIVE_FOLDER: ${{ vars.GDRIVE_FOLDER }}
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
- run: "pip install -r requirements.txt"
- run: "python pull_and_redact_files.py"
env:
NETFILE_API_KEY: ${{ secrets.NETFILE_API_KEY }}
NETFILE_API_SECRET: ${{ secrets.NETFILE_API_SECRET }}
- run: "python push_to_gdrive.py"
- run: "python test_pull_from_gdrive.py"
if: ${{ env.GDRIVE_FOLDER == 'OpenDisclosureDev' }} # Only test pull from Google Drive on developer fork