From bbfa29fc1be6e2a5531efbf8f72db04a52c71d16 Mon Sep 17 00:00:00 2001 From: Dickson Neoh Date: Fri, 4 Nov 2022 14:52:09 +0800 Subject: [PATCH] Github Actions - Link Checker (#19) * add link checker files * no verbose --- .github/workflows/markdown-link-check.yml | 20 ++++++++++++++++ .github/workflows/markdown_check_config.json | 24 ++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 .github/workflows/markdown-link-check.yml create mode 100644 .github/workflows/markdown_check_config.json diff --git a/.github/workflows/markdown-link-check.yml b/.github/workflows/markdown-link-check.yml new file mode 100644 index 0000000..7e7628a --- /dev/null +++ b/.github/workflows/markdown-link-check.yml @@ -0,0 +1,20 @@ +name: Check Markdown Links + +on: + pull_request: + types: [opened, synchronize] + +jobs: + markdown-link-check: + runs-on: ubuntu-latest + env: + ZENML_DEBUG: 1 + ZENML_ANALYTICS_OPT_IN: false + steps: + - uses: actions/checkout@main + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: 'yes' + use-verbose-mode: 'no' + config-file: .github/workflows/markdown_check_config.json + \ No newline at end of file diff --git a/.github/workflows/markdown_check_config.json b/.github/workflows/markdown_check_config.json new file mode 100644 index 0000000..62edb25 --- /dev/null +++ b/.github/workflows/markdown_check_config.json @@ -0,0 +1,24 @@ +{ + "ignorePatterns": [ + { + "pattern": "^http://0.0.0.0" + }, + { + "pattern": "^http://127.0.0.1" + }, + { + "pattern": "^http://localhost" + } + ], + "aliveStatusCodes": [ + 999, + 403, + 503, + 200, + 0 + ], + "timeout": "20s", + "retryOn429": true, + "retryCount": 5, + "fallbackRetryDelay": "30s" +} \ No newline at end of file