Skip to content

Check Broken Links

Check Broken Links #4

Workflow file for this run

name: Check Broken Links
on:
# repository_dispatch:
workflow_dispatch:
schedule:
- cron: "00 11 * * 2,5" # HKT 7PM Tuesday/Friday
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: site
- name: Restore Lychee Cache
uses: actions/cache@v3
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
# TODO: --include-fragments (v0.16?)
- name: Check Links
id: lychee
uses: lycheeverse/lychee-action@v1
with:
args: --base https://trebledj.me --timeout 60 --no-progress --accept '200,201,202,203,204,403,429' --include-verbatim --exclude-mail --exclude-path _site/404.html --cache --max-cache-age 3d _site
- name: Create Issue From File
if: env.lychee_exit_code != 0
uses: peter-evans/create-issue-from-file@v4
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue