Skip to content

Commit f4e281c

Browse files
author
Frederic Mercier
committed
DBACLD-139987 - put in place markdown link check
1 parent fcd546d commit f4e281c

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/check-links.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Check Markdown links
2+
3+
#on:
4+
# push:
5+
# branches:
6+
# - master
7+
# pull_request:
8+
# branches: [master]
9+
on: push
10+
jobs:
11+
markdown-link-check:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: technote-space/get-diff-action@v6
16+
with:
17+
PATTERNS: |
18+
**/**.md
19+
20+
- uses: gaurav-nelson/github-action-markdown-link-check@v1
21+
with:
22+
use-quiet-mode: 'yes'
23+
use-verbose-mode: 'yes'
24+
config-file: '.md_check_config.json'
25+

.md_check_config.json

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

0 commit comments

Comments
 (0)