Skip to content

Commit 4a9cdf4

Browse files
authored
github_actions: monthly check for broken hyperlinks (#7537)
Signed-off-by: sspaink <[email protected]>
1 parent 8d5077e commit 4a9cdf4

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 0 1 * *" # At 00:00 on day-of-month 1
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: --max-concurrency 1 --no-progress --exclude-path vendor --exclude-path CHANGELOG.md --scheme https --scheme http --accept 200..=206,403,429 .
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)