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)$" + } + ], +}