Skip to content

Commit 671afe6

Browse files
Improve link check reliability (#4222)
Improve link check reliability: add retries, timeout, and throttling for lychee-action Signed-off-by: Pratik Mahalle <[email protected]> Co-authored-by: Chris Ventura <[email protected]>
1 parent 2d0b7d6 commit 671afe6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.github/workflows/validate-documentation.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ on:
44
push:
55
branches: [ main ]
66
paths:
7-
- '.github/workflows/validate-documentation.yml'
8-
- '**.md'
9-
- '.lycheeignore'
7+
- '.github/workflows/validate-documentation.yml'
8+
- '**.md'
9+
- '.lycheeignore'
1010
pull_request:
1111
branches: [ main ]
1212
paths:
13-
- '.github/workflows/validate-documentation.yml'
14-
- '**.md'
15-
- '.lycheeignore'
13+
- '.github/workflows/validate-documentation.yml'
14+
- '**.md'
15+
- '.lycheeignore'
1616
merge_group:
1717
workflow_dispatch:
1818

@@ -27,17 +27,17 @@ jobs:
2727
- name: Checkout
2828
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # tag: v4.2.2
2929

30-
- name: Run markdown links chceks
30+
- name: Run markdown links checks
3131
if: ${{ !contains(github.event.pull_request.labels.*.name, 'release PR') }}
3232
uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 # tag: v2.4.1
3333
with:
3434
fail: true
35-
args: "--threads 1 --max-concurrency 1 --verbose --no-progress './**/*.md' './**/*.html'"
35+
args: "--threads 1 --max-concurrency 1 --verbose --retry-wait-time 5 --max-retries 3 --timeout 60 --no-progress './**/*.md' './**/*.html'"
3636

3737
- name: Run markdownlint
3838
uses: streetsidesoftware/cspell-action@eb29b6a67d122d2e6af385ff16bdb200d93b2e54 # tag: v7.0.0
3939
with:
4040
files: '**/*.md'
4141

4242
- name: Run cspell
43-
uses: DavidAnson/markdownlint-cli2-action@992badcdf24e3b8eb7e87ff9287fe931bcb00c6e # tag: v20.0.0
43+
uses: DavidAnson/markdownlint-cli2-action@992badcdf24e3b8eb7e87ff9287fe931bcb00c6e # tag: v20.0.0

0 commit comments

Comments
 (0)