Skip to content

Site Link Check

Site Link Check #119

on:
workflow_dispatch:
schedule:
- cron: "0 0 * * 0"
name: Site Link Check
permissions:
contents: read
issues: write
jobs:
linkChecker:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: ✅ Checkout Repo
uses: actions/checkout@v7
- name: 🔄 Restore lychee cache
uses: actions/cache@v6
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: 🔗 Link Checker
id: lychee
uses: lycheeverse/lychee-action@v2.9.0
with:
args: --cache --max-cache-age 1d --verbose --root-dir . --accept 200,401,403,429,503,520 './**/*.md' './**/*.html'
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: 🎟️ Create Issue From File
if: env.lychee_exit_code != 0
uses: peter-evans/create-issue-from-file@v6
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue