This is an automated email from the ASF dual-hosted git repository.

zhaojinchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 40e73a5b4b1 Refactor : refactor the dead link check pattern (#26022)
40e73a5b4b1 is described below

commit 40e73a5b4b1fc6c994e1548b06fa378d7a0ce227
Author: 孙念君 Nianjun Sun <[email protected]>
AuthorDate: Sat Jun 3 10:55:24 2023 +0800

    Refactor : refactor the dead link check pattern (#26022)
    
    * Refactor : refactor the dead link check pattern
    
    * Refactor : ignore the hugo learn link check
    
    * Refactor : ignore the hugo learn document
    
    * Refactor : ignore check path
    
    * Refactor : ignore check path
---
 .github/workflows/nightly-check.yml                                  | 5 ++++-
 .../linkcheck/{.dlc.json => markdown-link-check-config.json}         | 0
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/nightly-check.yml 
b/.github/workflows/nightly-check.yml
index cebaad33df3..87d4aeffbb9 100644
--- a/.github/workflows/nightly-check.yml
+++ b/.github/workflows/nightly-check.yml
@@ -145,6 +145,9 @@ jobs:
       - run: sudo npm install -g [email protected]
       - name: Check dead link
         run: |
-          for file in $(find . -name "*.md"); do
+          for file in $(find . -path "./docs/document/themes" -prune -o -name 
"*.md"); do
+              if [ -d "$file" ]; then
+                continue
+              fi
             markdown-link-check -c 
.github/workflows/resources/linkcheck/.dlc.json -q "$file"
           done
diff --git a/.github/workflows/resources/linkcheck/.dlc.json 
b/.github/workflows/resources/linkcheck/markdown-link-check-config.json
similarity index 100%
rename from .github/workflows/resources/linkcheck/.dlc.json
rename to .github/workflows/resources/linkcheck/markdown-link-check-config.json

Reply via email to