Skip to content

Commit 2d1d5b1

Browse files
committed
Added GitHub action to check links
1 parent 7bdcd35 commit 2d1d5b1

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

.github/workflows/check_links.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: check_links
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
push:
7+
branches:
8+
- main
9+
# TODO: make this a cron action
10+
# runs every monday at 9 am
11+
# schedule:
12+
# - cron: "0 9 * * 1"
13+
permissions: read-all
14+
jobs:
15+
check-links:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@master
19+
- uses: gaurav-nelson/github-action-markdown-link-check@v1
20+
with:
21+
use-quiet-mode: 'yes'
22+
use-verbose-mode: 'yes'
23+
config-file: '.github/workflows/markdown.links.config.json'
24+
folder-path: 'docs/'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"ignorePatterns": [
3+
{
4+
"pattern": "^tags/#"
5+
}
6+
]
7+
}

0 commit comments

Comments
 (0)