Skip to content

Commit e589707

Browse files
committed
Fix the link check for Github sites
By passing in the correct config file for the link checker code github/docs#17358
1 parent 2ef8caf commit e589707

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/link-checks.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@master
14-
- uses: gaurav-nelson/[email protected]
14+
- uses: gaurav-nelson/github-action-markdown-link-check@v1
15+
with:
16+
use-verbose-mode: 'yes'
17+
config-file: '.github/workflows/mlc_config.json'

.github/workflows/mlc_config.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"httpHeaders": [
3+
{
4+
"urls": ["https://github.com/", "https://guides.github.com/", "https://help.github.com/", "https://docs.github.com/"],
5+
"headers": {
6+
"Accept-Encoding": "zstd, br, gzip, deflate"
7+
}
8+
}
9+
]
10+
}

0 commit comments

Comments
 (0)