Skip to content

Commit

Permalink
Add markdown-link-check
Browse files Browse the repository at this point in the history
  • Loading branch information
moisseev committed Jul 11, 2024
1 parent 208d7b6 commit 76cb43a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,29 @@ 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
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: no
use-verbose-mode: yes
config-file: mlc_config.json
folder-path: ./_site-root/
file-extension: .html
9 changes: 9 additions & 0 deletions mlc_config.json
Original file line number Diff line number Diff line change
@@ -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)$"
}
],
}

0 comments on commit 76cb43a

Please sign in to comment.