Skip to content

check links

check links #110

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@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0
- name: Link Checker
id: lychee
uses: lycheeverse/lychee-action@97189f2c0a3c8b0cb0e704fd4e878af6e5e2b2c5 # v1.7.0
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@305829d9728f47beb0029417167a0af890edfd6e # v2.1.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@433e51abf769039ee20ba1293a088ca19d573b7f # tag=v4.0.1
with:
title: Link Checker Report
content-filepath: ./lychee/out.md
issue-number: ${{ steps.last-issue.outputs.issue_number }}
labels: report, automated issue, link-check