Skip to content

Commit 6ea92b7

Browse files
committed
chore: check for dead links every week
using https://github.com/lycheeverse/lychee Signed-off-by: sspaink <[email protected]>
1 parent 24ff9cf commit 6ea92b7

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/link_checker.yaml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "Check Broken Links"
2+
3+
on:
4+
repository_dispatch:
5+
workflow_dispatch:
6+
schedule:
7+
- cron: "0 13 * * 1" # Every Monday at 1PM UTC (9AM EST)
8+
9+
jobs:
10+
linkChecker:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
issues: write # required for peter-evans/create-issue-from-file
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- name: Link Checker
18+
id: lychee
19+
uses: lycheeverse/lychee-action@v2
20+
with:
21+
args: --no-progress --exclude-path vendor --exclude-path CHANGELOG.md --accept 200..=206,403 .
22+
fail: false
23+
24+
- name: Create Issue From File
25+
if: steps.lychee.outputs.exit_code != 0
26+
uses: peter-evans/create-issue-from-file@v5
27+
with:
28+
title: Link Checker Report
29+
content-filepath: ./lychee/out.md
30+
labels: report, automated issue

0 commit comments

Comments
 (0)