Skip to content

Commit e99e680

Browse files
authored
CI: Replace deprecated markdown-link-check with maintained version (#226)
* Replace deprecated markdown-link-check with maintained version * Remove link-check branch from workflow trigger * Add current branch for full link check * Add mlc_config.json file path for check-link tasks
1 parent f6ddc5b commit e99e680

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.github/workflows/check-links.yaml renamed to .github/workflows/check-links-periodic.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,19 @@ name: Check Markdown links
33
on:
44
workflow_dispatch:
55
push:
6-
pull_request:
6+
branches:
7+
- main
8+
- bala/fix_link_check
79
schedule:
810
- cron: "0 0 1 * *"
911

1012
jobs:
1113
markdown-link-check:
1214
runs-on: ubuntu-latest
1315
steps:
14-
- uses: actions/checkout@master
15-
- uses: gaurav-nelson/github-action-markdown-link-check@v1
16+
- uses: actions/checkout@v4
17+
- uses: tcort/github-action-markdown-link-check@v1
1618
with:
1719
config-file: .github/mlc_config.json
20+
use-quiet-mode: 'yes'
21+
use-verbose-mode: 'yes'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
on: [pull_request]
2+
name: Check Markdown links in modified files
3+
jobs:
4+
markdown-link-check:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: tcort/github-action-markdown-link-check@v1
9+
with:
10+
config-file: .github/mlc_config.json
11+
use-quiet-mode: 'yes'
12+
use-verbose-mode: 'yes'
13+
check-modified-files-only: 'yes'
14+
base-branch: 'main'

0 commit comments

Comments
 (0)