Skip to content

Check external links #38

Check external links

Check external links #38

Workflow file for this run

name: Check external links
on:
workflow_dispatch:
schedule:
- cron: "0 3 1 * *"
jobs:
lint:
name: links-check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- name: Get Current Date
id: dateofday
run: echo "DATEOFDAY=$(date +%Y-%m-%d)" >> "$GITHUB_ENV"
- name: Restore lychee cache
uses: actions/cache/restore@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
with:
path: .lycheecache
key: cache-lychee-${{ env.DATEOFDAY }}
- name: Link Checker
uses: lycheeverse/[email protected]
with:
fail: true
args: -c ./lychee-external-links.toml --base . --cache --max-cache-age 1d . --verbose --no-progress 'docs/**/*.md' 'versioned_docs/**/*.md'
token: "${{ secrets.GITHUB_TOKEN }}"
- name: Cache links
uses: actions/cache/save@d4323d4df104b026a6aa633fdb11d772146be0bf # v4
with:
path: .lycheecache
key: cache-lychee-${{ env.DATEOFDAY }}
- name: Create Issue From File
if: ${{ github.event_name == 'schedule' && 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