diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e6856b6dc..20db4f68f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -84,11 +84,25 @@ jobs: key: run_id-${{ github.run_id }} - uses: ruzickap/action-my-broken-link-checker@v2 with: - url: http://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }} + url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }} 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 + env: + # Downgrade Node + ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16 + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true + steps: + - uses: actions/checkout@v4 + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: no + use-verbose-mode: yes + config-file: mlc_config.json 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)$" + } + ], +}