Broken Links Report #58
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: Broken Links Report | |
on: | |
schedule: | |
- cron: '0 0 * * 0' | |
jobs: | |
run-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.12 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install bs4 requests | |
- name: Run Python script with secrets | |
run: python .github/scripts/broken_links.py | |
env: | |
NOTIFY_BASE_API_URL: ${{ secrets.NOTIFY_BASE_API_URL }} | |
BROKEN_LINKS_API_KEY: ${{ secrets.BROKEN_LINKS_API_KEY }} | |
BROKEN_LINKS_EMAIL: ${{ secrets.BROKEN_LINKS_EMAIL }} | |
BROKEN_LINKS_TEMPLATE_ID: ${{ secrets.BROKEN_LINKS_TEMPLATE_ID }} |