Fix sporadic link check failure (#5515)
This commit is contained in:
parent
6656791147
commit
d80b6f54fd
|
@ -56,14 +56,22 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Check markdown links
|
- name: Check markdown links
|
||||||
run: |
|
# using retry because of sporadic external site failures
|
||||||
npm install -g markdown-link-check
|
uses: nick-invision/retry@v2.6.0
|
||||||
find . -type f \
|
with:
|
||||||
-name '*.md' \
|
# timing out has not been a problem
|
||||||
-not -path './.github/*' \
|
timeout_minutes: 15
|
||||||
-not -path './node_modules/*' \
|
# give external site some time to hopefully recover
|
||||||
-print0 \
|
retry_wait_seconds: 120
|
||||||
| xargs -0 -n1 markdown-link-check --config .github/scripts/markdown_link_check_config.json
|
max_attempts: 5
|
||||||
|
command: |
|
||||||
|
npm install -g markdown-link-check
|
||||||
|
find . -type f \
|
||||||
|
-name '*.md' \
|
||||||
|
-not -path './.github/*' \
|
||||||
|
-not -path './node_modules/*' \
|
||||||
|
-print0 \
|
||||||
|
| xargs -0 -n1 markdown-link-check --config .github/scripts/markdown_link_check_config.json
|
||||||
|
|
||||||
markdown-misspell-check:
|
markdown-misspell-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
Loading…
Reference in New Issue