Skip to content

Commit 86bc01b

Browse files
Copilotsjdemartini
andcommitted
Add automatic retry for markdown link validation step
Co-authored-by: sjdemartini <[email protected]>
1 parent c1a8633 commit 86bc01b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build-test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,13 @@ jobs:
177177
# README and documentation is updated, we want to ensure that links
178178
# remain correct. (This also checks external links, though that's a
179179
# secondary concern.)
180-
run: pnpm run md-link:check
180+
# Use retry action to automatically retry once if the check fails due to
181+
# transient network issues or other flakiness.
182+
uses: nick-fields/retry@v3
183+
with:
184+
max_attempts: 2
185+
timeout_minutes: 5
186+
command: pnpm run md-link:check
181187

182188
- name: Test
183189
# Run the tests and print out the coverage information. In the future,

0 commit comments

Comments
 (0)