ruanwenjun commented on code in PR #17466:
URL: 
https://github.com/apache/dolphinscheduler/pull/17466#discussion_r2314843767


##########
.github/workflows/docs.yml:
##########
@@ -61,30 +61,11 @@ jobs:
         uses: ./.github/actions/workflow-telemetry-action
         with:
           comment_on_pr: false
-      - run: sudo npm install -g [email protected]
-      - run: sudo apt install plocate -y && sudo updatedb
-      # NOTE: Change command from `find . -name "*.md"` to `find . -not -path 
"*/node_modules/*" -not -path "*/.tox/*" -name "*.md"`
-      # if you want to run check locally
+      - run: sudo snap install lychee
       - name: Check Dead Links
         run: |
           set -xe
-          MAX_CONCURRENCY=6
-          EXIT_CODE=0
-  
-          cleanup() {
-            pkill -P $$
-            exit "$EXIT_CODE"
-          }
-          
-          trap cleanup SIGINT SIGTERM
-          
-          for file in $(locate "$PWD*/*.md" | grep -v 
./deploy/terraform/aws/README.md | grep -v ./.github); do
-            while [ $(jobs -r | wc -l) -ge "$MAX_CONCURRENCY" ]; do
-              wait -n || { EXIT_CODE=$?; cleanup; }
-            done
-            markdown-link-check -c .dlc.json -q "$file" &
-          done
-          wait || { EXIT_CODE=$?; cleanup; }
+          lychee -c .github/workflows/lychee.toml docs/docs/*

Review Comment:
   add `-v` to print more message?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to