Skip to content

Commit 6dae126

Browse files
authored
Update GitHub Actions workflow for Markdown link check
1 parent 62cc3d2 commit 6dae126

1 file changed

Lines changed: 18 additions & 10 deletions

File tree

.github/workflows/action.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
name: Check Markdown links
22
on:
3-
schedule:
4-
- cron: "* */24 * * *"
53
push:
64
branches: [ live ]
7-
5+
schedule:
6+
- cron: '0 8 * * 1'
7+
workflow_dispatch:
88
jobs:
9-
markdown-link-check:
9+
links:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: Run markdown link checker action
16+
id: link_check
17+
uses: academic/link-checker@v1
1318
with:
14-
fetch-depth: 1
15-
- uses: gaurav-nelson/github-action-markdown-link-check@v1
19+
report-file: link-check-results.md
20+
fail-on-issue: "true"
21+
22+
- name: Upload report artifact
23+
if: always()
24+
uses: actions/upload-artifact@v4
1625
with:
17-
use-quiet-mode: "yes"
18-
use-verbose-mode: "yes"
19-
config-file: './mlc_config.json'
26+
name: markdown-link-check-report
27+
path: ${{ steps.link_check.outputs.report-file }}

0 commit comments

Comments
 (0)