From 93d6ad5ac778b52187d91ee747ee7ecebb933197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=82=8E=E6=B3=BC?= Date: Thu, 12 Dec 2024 13:52:13 +0800 Subject: [PATCH] Dep: zhihu return 403; skip check link to zhihu --- .github/workflows/build.yml | 2 ++ mlc_config.json | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 mlc_config.json diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 275041c..a401313 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -7,6 +7,8 @@ jobs: steps: - uses: actions/checkout@master - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + config-file: 'mlc_config.json' md2zhihu: diff --git a/mlc_config.json b/mlc_config.json new file mode 100644 index 0000000..efcc623 --- /dev/null +++ b/mlc_config.json @@ -0,0 +1,12 @@ +{ + "ignorePatterns": [ + { + "pattern": "^https://www.zhihu.com/people/" + } + ], + "timeout": "3s", + "retryOn429": true, + "retryCount": 3, + "fallbackRetryDelay": "30s", + "aliveStatusCodes": [200, 206] +}