Skip to content

Commit 8158c75

Browse files
committed
Markdown Lint Action
1 parent 02402d3 commit 8158c75

2 files changed

Lines changed: 51 additions & 0 deletions

File tree

.github/linters/mlc_config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
{
3+
"ignorePatterns": [
4+
{
5+
"pattern": "^http://ignored-domain.com"
6+
}
7+
]
8+
}

.github/workflows/md_link.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#########################
2+
#########################
3+
### Link Check Action ###
4+
#########################
5+
#########################
6+
name: Check Markdown links
7+
8+
###########################
9+
# Start the job on all PR #
10+
###########################
11+
on:
12+
pull_request:
13+
branches: [ master ]
14+
15+
###############
16+
# Set the Job #
17+
###############
18+
jobs:
19+
# Name the Job
20+
markdown-link-check:
21+
# Set the agent to run on
22+
runs-on: ubuntu-latest
23+
24+
##################
25+
# Load all steps #
26+
##################
27+
steps:
28+
29+
##########################
30+
# Checkout the code base #
31+
##########################
32+
- uses: actions/checkout@master
33+
34+
###################################
35+
# Run Linkcheck against code base #
36+
###################################
37+
- uses: gaurav-nelson/github-action-markdown-link-check@v1
38+
with:
39+
use-quiet-mode: 'no'
40+
use-verbose-mode: 'yes'
41+
config-file: '.github/linters/mlc_config.json'
42+
max-depth: -1
43+
check-modified-files-only: 'yes'

0 commit comments

Comments
 (0)