Skip to content

Commit 87f6b2f

Browse files
authored
[Chore] Hotfix ci error (#17172)
1 parent c236066 commit 87f6b2f

2 files changed

Lines changed: 20 additions & 5 deletions

File tree

.dlc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@
3434
"timeout": "10s",
3535
"retryOn429": true,
3636
"retryCount": 10,
37-
"fallbackRetryDelay": "1000s",
37+
"fallbackRetryDelay": "10s",
3838
"aliveStatusCodes": [200, 401, 403, 0]
3939
}

.github/workflows/docs.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,30 @@ jobs:
6161
uses: ./.github/actions/workflow-telemetry-action
6262
with:
6363
comment_on_pr: false
64-
- run: sudo npm install -g markdown-link-check@3.11.2
65-
- run: sudo apt install plocate -y
64+
- run: sudo npm install -g markdown-link-check@3.13.7
65+
- run: sudo apt install plocate -y && sudo updatedb
6666
# NOTE: Change command from `find . -name "*.md"` to `find . -not -path "*/node_modules/*" -not -path "*/.tox/*" -name "*.md"`
6767
# if you want to run check locally
68-
- run: |
68+
- name: Check Dead Links
69+
run: |
70+
set -xe
71+
MAX_CONCURRENCY=6
72+
EXIT_CODE=0
73+
74+
cleanup() {
75+
pkill -P $$
76+
exit "$EXIT_CODE"
77+
}
78+
79+
trap cleanup SIGINT SIGTERM
80+
6981
for file in $(locate "$PWD*/*.md" | grep -v ./deploy/terraform/aws/README.md | grep -v ./.github); do
82+
while [ $(jobs -r | wc -l) -ge "$MAX_CONCURRENCY" ]; do
83+
wait -n || { EXIT_CODE=$?; cleanup; }
84+
done
7085
markdown-link-check -c .dlc.json -q "$file" &
7186
done
72-
wait
87+
wait || { EXIT_CODE=$?; cleanup; }
7388
paths-filter:
7489
name: Helm-Doc-Path-Filter
7590
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)