Skip to content

Commit e6c3167

Browse files
add link checker (github#585)
* add link checker * add config file * continue on error Co-authored-by: Lana Brindley <github@lanabrindley.com>
1 parent 5440e12 commit e6c3167

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.github/workflows/link-checker.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Check Markdown links
2+
3+
on: push
4+
5+
jobs:
6+
markdown-link-check:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@master
10+
- uses: gaurav-nelson/github-action-markdown-link-check@v1
11+
with:
12+
config-file: 'mlc_config.json'
13+
continue-on-error: true

mlc_config.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"ignorePatterns": [
3+
{
4+
"pattern": "^/"
5+
}
6+
],
7+
"replacementPatterns": [
8+
{
9+
"pattern": ":currentVersion:",
10+
"replacement": "latest"
11+
}
12+
]
13+
}

0 commit comments

Comments
 (0)