Skip to content

Commit 68a6b9b

Browse files
NetcrackerCLPLCIweb-flowPhBouzid
authored
fix(ci): fix for link-checker workflow [skip ci] (#44)
Co-authored-by: borislavr <noreply@github.com> Co-authored-by: Philipp Bouzid <ph.bouzid03@gmail.com>
1 parent 3388520 commit 68a6b9b

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/link-checker.yaml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,31 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v4
1515

16+
- name: Restore lychee cache
17+
uses: actions/cache@v4
18+
id: restore-cache
19+
with:
20+
path: .lycheecache
21+
key: cache-lychee-${{ github.sha }}
22+
restore-keys: cache-lychee-
23+
1624
- name: Link Checker
1725
id: lychee
1826
uses: lycheeverse/lychee-action@v2
1927
with:
20-
args: --base . --verbose --no-progress './**/*.md' --accept 100..=103,200..=299,429
28+
args: >-
29+
'./**/*.md'
30+
--verbose
31+
--no-progress
32+
--user-agent 'Mozilla/5.0 (X11; Linux x86_64) Chrome/134.0.0.0'
33+
--retry-wait-time 60
34+
--max-retries 8
35+
--accept 100..=103,200..=299,429
36+
--cookie-jar cookies.json
37+
--exclude-all-private
38+
--max-concurrency 4
39+
--cache
40+
--cache-exclude-status '429, 500..502'
41+
--max-cache-age 1d
2142
format: markdown
2243
fail: true

0 commit comments

Comments
 (0)