Skip to content

Commit

Permalink
ci: add a workflow to validate links in Markdown files (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
fharper authored Nov 15, 2023
1 parent 9c2875e commit bdd8bce
Show file tree
Hide file tree
Showing 2 changed files with 90 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Markdown Links Validation

on: [push, workflow_dispatch]

jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:

- name: Checkout this repository
uses: actions/[email protected]

- name: Validate Links in Markdown files
if: always()
uses: gaurav-nelson/[email protected]
with:
config-file: '.markdownlinkcheck.json'
use-quiet-mode: 'yes'
file-extension: .md
70 changes: 70 additions & 0 deletions .markdownlinkcheck.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"ignorePatterns": [
{
"pattern": "^https://www.linkedin.com.*"
},
{
"pattern": ".*\\]$"
},
{
"pattern": "https://www.enterprisetimes.co.uk*"
},
{
"pattern": "https://www.pexels.com*"
},
{
"pattern": "https://www.pngrepo.com"
},
{
"pattern": "https://tdwi.org*"
},
{
"pattern": "https://www.fakepersongenerator.com*"
},
{
"pattern": "https://dash.readme.com*"
},
{
"pattern": "https://cfpland.com*"
},
{
"pattern": "https://n8n.io*"
},
{
"pattern": "https://confs.tech*"
},
{
"pattern": "https://businesswire.com*"
},
{
"pattern": "https://www.tmcnet.com*"
},
{
"pattern": "https://.*kubefirst.dev*"
},
{
"pattern": "http://localhost*"
},
{
"pattern": "https://gitlab.com*"
},
{
"pattern": "https://.*vultr.com*"
}
],
"replacementPatterns": [
{
"pattern": "{require(\"(*)\").default}",
"replacement": "*"
},
{
"pattern": "^/img/*",
"replacement": "/static/img/*"
}
],
"timeout": "30s",
"retryOn429": true,
"retryCount": 2,
"fallbackRetryDelay": "1m",
"aliveStatusCodes": [200, 429]
}

0 comments on commit bdd8bce

Please sign in to comment.