From b73e45d228f3a2805346f7ddf56bcb8861a383f8 Mon Sep 17 00:00:00 2001 From: moisseev Date: Thu, 11 Jul 2024 20:44:13 +0300 Subject: [PATCH] Add markdown-link-check --- .github/workflows/main.yml | 22 ++++++++++++++++++++-- mlc_config.json | 9 +++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 mlc_config.json diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e6856b6dc..118008ff6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -88,7 +88,25 @@ jobs: pages_path: ./_site-root/ cmd_params: > --buffer-size=8192 --color=always --skip-tls-verification - --verbose --max-connections-per-host=10 - --exclude="^https://${{ github.repository_owner }}[.]github[.]io/${{ github.event.repository.name }}/" + --max-connections-per-host=10 + --exclude="^https://${{ github.repository_owner }}[.]github[.]io/${{ github.event.repository.name }}/(doc/lua/((lua|rspamd)_.+|ucl)[.]html(#.+)?|.*#top)$" --exclude="^https://github[.]com/rspamd/rspamd[.]com/edit/master/" --exclude="^https://www[.]ozon[.]ru/$" + + markdown-link-check: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/cache@v4 + with: + path: | + _site-root/ + _site/ + key: run_id-${{ github.run_id }} + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: yes + use-verbose-mode: yes + config-file: mlc_config.json + folder-path: ./_site-root/ + file-extension: .html diff --git a/mlc_config.json b/mlc_config.json new file mode 100644 index 000000000..0a21b3088 --- /dev/null +++ b/mlc_config.json @@ -0,0 +1,9 @@ +{ + "ignorePatterns": [ + { + "pattern": "^https://github[.]com/rspamd/rspamd[.]com/edit/master/", + "pattern": "^https://www[.]ozon[.]ru/$", + "pattern": "^https://[^.]+[.]github[.]io/[^/]+/(doc/lua/((lua|rspamd)_.+|ucl)[.]html(#.+)?|.*#top)$" + } + ], +}