markdown link checker updates (#5804)

This commit is contained in:
Trask Stalnaker 2022-04-13 08:52:21 -07:00 committed by GitHub
parent e58d39d4ad
commit fd5c7c5b23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 23 deletions

View File

@ -1,11 +1,7 @@
{ {
"ignorePatterns": [ "retryOn429": true,
{ "aliveStatusCodes": [
"pattern": "^https://mvnrepository\\.com/artifact/io\\.opentelemetry$" 200,
}, 403
{ ]
"pattern": "^http://code\\.google\\.com/p/concurrentlinkedhashmap$"
}
],
"retryOn429": true
} }

View File

@ -1,13 +0,0 @@
#!/bin/bash -e
for file in "$@"; do
for i in 1 2 3; do
if markdown-link-check --config "$(dirname "$0")/markdown-link-check-config.json" \
"$file"; then
break
elif [[ $i == 3 ]]; then
exit 1
fi
sleep 5
done
done

View File

@ -18,4 +18,5 @@ jobs:
-name '*.md' \ -name '*.md' \
-not -path './CHANGELOG.md' \ -not -path './CHANGELOG.md' \
-not -path './licenses/*' \ -not -path './licenses/*' \
| xargs .github/scripts/markdown-link-check-with-retry.sh | xargs markdown-link-check \
--config .github/scripts/markdown-link-check-config.json