Skip to content

Run External Link Checker #30

Run External Link Checker

Run External Link Checker #30

name: Run External Link Checker
on:
schedule:
# <minute [0,59]> <hour [0,23]> <day of the month [1,31]> <month of the year [1,12]> <day of the week [0,6]>
# https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07
# Run every Monday at 18:00:00 UTC (Monday at 10:00:00 PST)
- cron: "0 18 * * 1"
jobs:
external_link_checker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install Dependencies
run: |
pip install --upgrade pip setuptools wheel
pip install .[all]
- name: Decrypt Google API secret
run: ./.github/scripts/decrypt_google_api_secret.sh
env:
GOOGLE_API_SECRET_PASSPHRASE: ${{ secrets.GOOGLE_API_SECRET_PASSPHRASE }}
- name: Run External Link Checker
run: |
run_external_link_checker -msi ${{ secrets.PRODUCTION_MASTER_SPREADSHEET_ID }} -gacp $HOME/secrets/google-api-credentials.json
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: external-link-artifact
path: external_links.csv