Skip to content

run getpdf.py

run getpdf.py #612

Workflow file for this run

name: run getpdf.py
on:
schedule:
- cron: "30 19 * * *" # runs at 7:30 UTC = 3:30 ET
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout repo content
uses: actions/checkout@v4 # checkout the repository content to github runner
- name: decrypt Google credentials
env:
GOOGLE_API_DECRYPT_PW: ${{ secrets.GOOGLE_API_DECRYPT_PW }}
run: sh ./decrypt-credentials.sh
- name: setup python
uses: actions/setup-python@v5
with:
python-version: "3.10.6" # install the python version needed
- name: install python packages
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: execute py script # run getpdf.py
run: python getpdf.py
- name: commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add -A
git diff-index --quiet HEAD || (git commit -a -m "updated pdf" --allow-empty)
- name: push changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main