Skip to content

Commit 58517f9

Browse files
NetcrackerCLPLCIweb-flowPavelYadrov
authored
fix(ci): fix for link-checker workflow [skip ci] (#50)
* fix(ci): fix for link-checker workflow [skip ci] Related issue: Netcracker/qubership-workflow-hub#264 * fix(ci): fix for link-checker workflow Related issue: Netcracker/.github#104 --------- Co-authored-by: borislavr <noreply@github.com> Co-authored-by: PavelYadrov <61824537+PavelYadrov@users.noreply.github.com>
1 parent 84003c4 commit 58517f9

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

.github/workflows/link-checker.yaml

Lines changed: 26 additions & 1 deletion
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,10 +17,31 @@ 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
1931
with:
20-
args: --base . --verbose --no-progress './**/*.md' --accept 100..=103,200..=299,429
32+
args: >-
33+
'./**/*.md'
34+
--verbose
35+
--no-progress
36+
--user-agent 'Mozilla/5.0 (X11; Linux x86_64) Chrome/134.0.0.0'
37+
--retry-wait-time 60
38+
--max-retries 8
39+
--accept 100..=103,200..=299,429
40+
--cookie-jar cookies.json
41+
--exclude-all-private
42+
--max-concurrency 4
43+
--cache
44+
--cache-exclude-status '429, 500..502'
45+
--max-cache-age 1d
2146
format: markdown
2247
fail: true

0 commit comments

Comments
 (0)