Skip to content

Link checker

Link checker #9

Workflow file for this run

name: Link checker
on:
workflow_dispatch:
pull_request: null
schedule:
- cron: 0 0 * * 0
jobs:
link-checker:
runs-on: ubuntu-latest
permissions:
issues: write
contents: read
steps:
- uses: actions/checkout@v4
- name: Restore lychee cache
uses: actions/cache@v3
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-
- name: Run lychee
uses: lycheeverse/[email protected]
id: lychee
with:
args: "--base . --cache --max-cache-age 1d ."
- name: Create issue
if: env.lychee_exit_code != 0
uses: peter-evans/create-issue-from-file@v5
with:
title: Link checker report
labels: 'bug'
content-filepath: ./lychee/out.md