Skip to content

Commit 1e83d9a

Browse files
Create link-check.yml
1 parent bcee374 commit 1e83d9a

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/link-check.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Link Check
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
jobs:
9+
lychee:
10+
name: Check links with lychee
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repo
14+
uses: actions/checkout@v4
15+
16+
- name: Run lychee (broken-link checker)
17+
uses: lycheeverse/lychee-action@v1.11.0
18+
with:
19+
args: >-
20+
--no-progress
21+
--verbose
22+
--max-redirects 10
23+
--accept 200,206,301,302,303,307,308
24+
--exclude-mail
25+
--exclude-all-private
26+
--retry-wait-time 2
27+
--retry-count 2
28+
--timeout 20
29+
.
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Upload lychee report
34+
if: always()
35+
uses: actions/upload-artifact@v4
36+
with:
37+
name: lychee-report
38+
path: lychee/out.md

0 commit comments

Comments
 (0)