Skip to content

Check Links

Check Links #10

Workflow file for this run

name: Check Links
on:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: "5 8 * * Sun" # once a week every sunday at 8:05
workflow_run:
workflows: ["Build and Publish Quarto Website"]
types:
- completed
jobs:
check-links:
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: site
path: ./_site # Ensure this path matches the upload path in Workflow 1
github-token: ${{ secrets.GH_PAT }}
- name: Display structure of downloaded files
run: ls -R
- name: Restore lychee cache
uses: actions/cache@v3
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: Link Checker
id: lychee
uses: lycheeverse/[email protected]
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
with:
args: '--cache --max-cache-age 1d ./_site/**/*.html'
fail: true