Skip to content

ignore please

ignore please #78

Workflow file for this run

name: Link checks
on:
workflow_dispatch:
schedule:
- cron: "00 18 1 * *"
pull_request:
permissions: {}
env:
# Single definition to simplify any future changes to the linkcheck configuration.
LYCHEE_ARGS: --accept '100..=103,200..=299,401,403,429,999' --verbose --no-progress .
jobs:
linkchecker-pr:
if: ${{ github.event_name == 'pull_request' }}
name: PR - Link Checker
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Link Checker
uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0
with:
args: ${{ env.LYCHEE_ARGS }}
fail: false
jobSummary: true
linkchecker-scheduled:
if: ${{ github.event_name != 'pull_request' }}
name: Monthly Link Checker
runs-on: ubuntu-latest
permissions:
contents: read
# required for peter-evans/create-issue-from-file
issues: write
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@e7477775783ea5526144ba13e8db5eec57747ce8 # v2.9.0
with:
args: ${{ env.LYCHEE_ARGS }}
# Do not fail scheduled runs; report by issue when links are broken.
fail: false
jobSummary: true
- name: Create Issue From File
if: ${{ steps.lychee.outputs.exit_code != 0 }}
uses: peter-evans/create-issue-from-file@fca9117c27cdc29c6c4db3b86c48e4115a786710 # v6.0.0
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
labels: report, automated issue