Skip to content

Commit f5bfc3c

Browse files
authored
Use github-action-markdown-link-check (#2824)
* Use github-action-markdown-link-check * Rename config file and remove readme
1 parent d9b2c4b commit f5bfc3c

File tree

5 files changed

+9
-226
lines changed

5 files changed

+9
-226
lines changed

.github/workflows/check-links.yaml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ jobs:
1212
uses: actions/checkout@v2
1313
with:
1414
fetch-depth: 0
15-
- name: Setup Node
16-
uses: actions/setup-node@v2
15+
- uses: gaurav-nelson/[email protected]
1716
with:
18-
node-version: '14'
19-
- name: Check links in markdown docs
20-
run: |
21-
pushd $HOME
22-
npm install --save-dev [email protected]
23-
popd
24-
- run: ./.github/workflows/check-links/check-links.sh
17+
base-branch: 'main'
18+
use-quiet-mode: 'yes'
19+
use-verbose-mode: 'yes'
20+
config-file: '.github/workflows/check_links_config.json'
21+
check-modified-files-only: 'yes'
22+
folder-path: ''

.github/workflows/check-links/README.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/check-links/check-links.sh

Lines changed: 0 additions & 40 deletions
This file was deleted.

.github/workflows/check-links/markdown-link-check

Lines changed: 0 additions & 165 deletions
This file was deleted.

.github/workflows/check-links/config.json renamed to .github/workflows/check_links_config.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
{
1010
"pattern": "http(s)?://example.com"
1111
}
12-
]
12+
],
13+
"aliveStatusCodes": [429, 200]
1314
}

0 commit comments

Comments
 (0)