File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,16 +2,29 @@ name: Check Markdown links
22
33on :
44 workflow_dispatch :
5- push :
65 pull_request :
76 schedule :
87 - cron : " 0 0 1 * *"
98
109jobs :
11- markdown-link-check :
10+ markdown-link-check-pr :
11+ if : github.event_name == 'pull_request'
1212 runs-on : ubuntu-latest
1313 steps :
14- - uses : actions/checkout@master
14+ - uses : actions/checkout@v4
15+ with :
16+ fetch-depth : 0
17+ - uses : gaurav-nelson/github-action-markdown-link-check@v1
18+ with :
19+ config-file : ' .github/mlc_config.json'
20+ check-modified-files-only : ' yes'
21+ base-branch : ' main'
22+
23+ markdown-link-check-full :
24+ if : github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'
25+ runs-on : ubuntu-latest
26+ steps :
27+ - uses : actions/checkout@v4
1528 - uses : gaurav-nelson/github-action-markdown-link-check@v1
1629 with :
1730 config-file : ' .github/mlc_config.json'
You can’t perform that action at this time.
0 commit comments