Skip to content

Commit cf64c9b

Browse files
committed
fix(ci): fix for link-checker workflow
Related issue: Netcracker/.github#104
1 parent baac238 commit cf64c9b

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/link-checker.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
push: null
66
repository_dispatch: null
77
workflow_dispatch: null
8+
pull_request:
9+
branches: [main]
10+
types:
11+
[opened, reopened, synchronize]
812
permissions:
913
contents: read
1014
jobs:
@@ -13,6 +17,14 @@ jobs:
1317
steps:
1418
- uses: actions/checkout@v4
1519

20+
- name: Restore lychee cache
21+
uses: actions/cache@v4
22+
id: restore-cache
23+
with:
24+
path: .lycheecache
25+
key: cache-lychee-${{ github.sha }}
26+
restore-keys: cache-lychee-
27+
1628
- name: Link Checker
1729
id: lychee
1830
uses: lycheeverse/lychee-action@v2
@@ -22,10 +34,14 @@ jobs:
2234
--verbose
2335
--no-progress
2436
--user-agent 'Mozilla/5.0 (X11; Linux x86_64) Chrome/134.0.0.0'
25-
--retry-wait-time 30
26-
--max-retries 5
37+
--retry-wait-time 60
38+
--max-retries 8
2739
--accept 100..=103,200..=299,429
2840
--cookie-jar cookies.json
2941
--exclude-all-private
42+
--max-concurrency 4
43+
--cache
44+
--cache-exclude-status '429, 500..502'
45+
--max-cache-age 1d
3046
format: markdown
3147
fail: true

0 commit comments

Comments
 (0)