Skip to content

check links

check links #543

Workflow file for this run

name: check links
on:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: "00 18 * * *"
permissions: read-all
jobs:
check-links:
runs-on: ubuntu-22.04
permissions:
issues: write
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@c053181aa0c3d17606addfe97a9075a32723548a # v1.9.3
with:
args: "--config=.lychee.toml ."
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Look for an existing issue
id: last-issue
uses: micalevisk/last-issue-action@0d40124cc99ac8601c2516007f0c98ef3d27537b # v2.3.0
with:
state: open
labels: link-check
- name: Create Issue From File
if: ${{ env.lychee_exit_code != 0 }}
uses: peter-evans/create-issue-from-file@24452a72d85239eacf1468b0f1982a9f3fec4c94 # v5.0.0
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
issue-number: ${{ steps.last-issue.outputs.issue_number }}
labels: report, automated issue, link-check