docs: Add a Github workflow for checking dead links (#2406)

Co-authored-by: Sahib Yar <sahib.yar@securiti.ai>
Co-authored-by: Marco Munizaga <marco@marcopolo.io>
This commit is contained in:
Sahib Yar
2023-07-07 02:02:13 +05:00
committed by GitHub
parent 24c50ea92a
commit fa153c58dd
5 changed files with 43 additions and 4 deletions
+17
View File
@@ -0,0 +1,17 @@
name: Markdown Link Checking
on:
pull_request:
push:
branches:
- "master"
jobs:
check-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes' # show only broken links
use-verbose-mode: 'yes'
config-file: .github/workflows/markdown-links-config.json # for removing any false positives
@@ -0,0 +1,22 @@
{
"ignorePatterns": [
{
"pattern": "^http://localhost"
},
{
"pattern": "^https://twitter.com/"
},
{
"pattern": "^https://opensource.org/"
}
],
"aliveStatusCodes": [200],
"httpHeaders": [
{
"urls": ["https://docs.github.com/"],
"headers": {
"Accept-Encoding": "*"
}
}
]
}