Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f138cb9

Browse files
authoredOct 31, 2022
ci: Run Markdown link checker nightly (#9642)
* ci: Run Markdown link checker nightly Signed-off-by: Thane Thomson <[email protected]> * ci: Switch to Informal Systems fork of link checker Signed-off-by: Thane Thomson <[email protected]> * Update link checker config to work with GitHub As per tcort/markdown-link-check#201 (comment) Signed-off-by: Thane Thomson <[email protected]> Signed-off-by: Thane Thomson <[email protected]>
1 parent 83b7f4a commit f138cb9

File tree

2 files changed

+20
-12
lines changed

2 files changed

+20
-12
lines changed
 

‎.github/workflows/markdown-links.yml

+8-11
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,20 @@
11
name: Check Markdown links
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
branches: [main]
4+
schedule:
5+
# 2am UTC daily
6+
- cron: '0 2 * * *'
97

108
jobs:
119
markdown-link-check:
10+
strategy:
11+
matrix:
12+
branch: ['main', 'v0.37.x', 'v0.34.x']
1213
runs-on: ubuntu-latest
1314
steps:
1415
- uses: actions/checkout@v3
15-
- uses: technote-space/get-diff-action@v6
1616
with:
17-
PATTERNS: |
18-
**/**.md
19-
- uses: creachadair/github-action-markdown-link-check@master
17+
ref: ${{ matrix.branch }}
18+
- uses: informalsystems/github-action-markdown-link-check@main
2019
with:
21-
check-modified-files-only: 'yes'
2220
config-file: '.md-link-check.json'
23-
if: env.GIT_DIFF

‎.md-link-check.json

+12-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,16 @@
22
"retryOn429": true,
33
"retryCount": 5,
44
"fallbackRetryDelay": "30s",
5-
"aliveStatusCodes": [200, 206, 503]
5+
"aliveStatusCodes": [200, 206, 503],
6+
"httpHeaders": [
7+
{
8+
"urls": [
9+
"https://docs.github.com/",
10+
"https://help.github.com/"
11+
],
12+
"headers": {
13+
"Accept-Encoding": "zstd, br, gzip, deflate"
14+
}
15+
}
16+
]
617
}

0 commit comments

Comments
 (0)
Please sign in to comment.