markdown link checker updates
MODIFY
.github/scripts/markdown-link-check-config.json
.github/scripts/markdown-link-check-config.json
{
- "ignorePatterns": [
- {
- "pattern": "^https://mvnrepository\\.com/artifact/io\\.opentelemetry$"
- },
- {
- "pattern": "^http://code\\.google\\.com/p/concurrentlinkedhashmap$"
- }
- ],
- "retryOn429": true
+ "retryOn429": true,
+ "aliveStatusCodes": [
+ 200,
+ 403
+ ]
}

DELETE
.github/scripts/markdown-link-check-with-retry.sh
-#!/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

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

markdown link checker updates (#5804)