File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 "timeout" : " 10s" ,
3535 "retryOn429" : true ,
3636 "retryCount" : 10 ,
37- "fallbackRetryDelay" : " 1000s " ,
37+ "fallbackRetryDelay" : " 10s " ,
3838 "aliveStatusCodes" : [200 , 401 , 403 , 0 ]
3939}
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments