Skip to content

Commit 142364b

Browse files
committed
Add lychee link checker github workflow
1 parent c204b8b commit 142364b

File tree

3 files changed

+32
-0
lines changed

3 files changed

+32
-0
lines changed

.github/workflows/links.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Links
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
linkChecker:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
issues: write # required for peter-evans/create-issue-from-file
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Link Checker
15+
id: lychee
16+
uses: lycheeverse/lychee-action@v2
17+
with:
18+
fail: true
19+
args: --config lychee.toml
20+
21+
- name: Create Issue From File
22+
if: steps.lychee.outputs.exit_code != 0
23+
uses: peter-evans/create-issue-from-file@v6
24+
with:
25+
title: Link Checker Report
26+
content-filepath: ./lychee/out.md
27+
labels: report, automated issue

.lycheeignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
^file://
2+
^https://sandbox\.maxmind\.com
3+
^https://deno\.land
4+
^https://jsr\.io

lychee.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
accept = "100..=103, 200..=299, 403"

0 commit comments

Comments
 (0)