1
0
mirror of synced 2025-12-19 18:06:02 -05:00

Add GH action to check links in md files (#8346)

* Add GH action to check links in md files

* remove empty line

* test

* Only check modified files

* add config file

* upate checkout version

* add base branch

* add ignore pattern

* Update markdown-link-check.yml

---------

Co-authored-by: Rich Lander <rlander@microsoft.com>
This commit is contained in:
Maira Wenzel
2023-04-04 13:11:41 -04:00
committed by GitHub
parent 920771b07b
commit 829788eec3
2 changed files with 24 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
{
"ignorePatterns": [
{
"pattern": "^http://localhost"
}
],
"aliveStatusCodes": [429, 200]
}

View File

@@ -0,0 +1,16 @@
name: Check Markdown links
on: push
jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
check-modified-files-only: 'yes'
config-file: '.github/workflows/markdown-link-check-config.json'
base-branch: 'main'