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

sunyi pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-website.git


The following commit(s) were added to refs/heads/master by this push:
     new f96e26b3b21 feat : Markdown Link Check Action (#1656)
f96e26b3b21 is described below

commit f96e26b3b212e5874da9488afdab298277b23e0f
Author: μtkarsh <[email protected]>
AuthorDate: Fri Sep 1 06:43:00 2023 +0530

    feat : Markdown Link Check Action (#1656)
---
 .github/mlc_config.json          | 10 ++++++++++
 .github/workflows/link-check.yml | 17 +++++++----------
 2 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/.github/mlc_config.json b/.github/mlc_config.json
new file mode 100644
index 00000000000..cff2e22ab5e
--- /dev/null
+++ b/.github/mlc_config.json
@@ -0,0 +1,10 @@
+{
+    "ignorePatterns": [
+        {
+            "pattern": 
"^(https?://)?(127.0.0.1|localhost|192.168.33.1|somehost\\.com)"
+        }
+    ],
+    "aliveStatusCodes": [
+        200
+    ]
+}
diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml
index 9dd8c9849b7..5ec1eebc65e 100644
--- a/.github/workflows/link-check.yml
+++ b/.github/workflows/link-check.yml
@@ -36,14 +36,11 @@ jobs:
         run: |
           yarn sync-docs && git status
 
-      - name: Check Links
-        run: |
-          yarn workspace scripts link-checker && git status
-
-      - name: Archive Broken Links List
-        uses: actions/upload-artifact@v3
-        if: always()
+      - name: Run link check
+        uses: gaurav-nelson/github-action-markdown-link-check@v1
         with:
-          name: broken-links.json
-          path: scripts/brokenLinks.json
-          retention-days: 5
+          use-quiet-mode: 'yes'
+          use-verbose-mode: 'yes'
+          config-file: '.github/mlc_config.json'
+          folder-path: 'doc/docs/, doc/i18n/zh/'
+        continue-on-error: true

Reply via email to