Skip to content

Commit 0297c7b

Browse files
authored
1 parent 6606a16 commit 0297c7b

File tree

2 files changed

+44
-3
lines changed

2 files changed

+44
-3
lines changed

.github/workflows/markdown-link-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ jobs:
3030

3131
- name: Run Markdown Link Check
3232
uses: NVIDIA/spark-rapids-common/markdown-link-check@main
33+
with:
34+
max-depth: -1
35+
use-verbose-mode: 'yes'

markdown-link-check/action.yml

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,54 @@
1515
name: 'Markdown Link Check'
1616
description: 'Check markdown links'
1717

18+
inputs:
19+
use-quiet-mode:
20+
description: 'Specify yes to only show errors in output'
21+
required: false
22+
default: 'no'
23+
use-verbose-mode:
24+
description: 'Specify yes to show detailed HTTP status for checked links'
25+
required: false
26+
default: 'yes'
27+
config-file:
28+
description: 'Path to custom configuration file (relative to repository root)'
29+
required: false
30+
folder-path:
31+
description: 'Comma-separated folders to check (default: entire repository)'
32+
required: false
33+
max-depth:
34+
description: 'Directory traversal depth (-1 for unlimited)'
35+
required: false
36+
default: -1
37+
check-modified-files-only:
38+
description: 'Only check modified markdown files in PRs'
39+
required: false
40+
base-branch:
41+
description: 'Comparison branch for modified files check'
42+
required: false
43+
file-extension:
44+
description: 'File extension to check'
45+
required: false
46+
file-path:
47+
description: 'Comma-separated specific files to check'
48+
required: false
49+
1850
runs:
1951
using: "composite"
2052
steps:
2153
- name: Run markdown link check
2254
id: markdown-link-check
2355
uses: tcort/github-action-markdown-link-check@v1
2456
with:
25-
max-depth: -1
26-
use-verbose-mode: 'yes'
27-
base-branch: 'gh-pages'
57+
use-quiet-mode: ${{ inputs.use-quiet-mode }}
58+
use-verbose-mode: ${{ inputs.use-verbose-mode }}
59+
config-file: ${{ inputs.config-file }}
60+
folder-path: ${{ inputs.folder-path }}
61+
max-depth: ${{ inputs.max-depth }}
62+
check-modified-files-only: ${{ inputs.check-modified-files-only }}
63+
base-branch: ${{ inputs.base-branch }}
64+
file-extension: ${{ inputs.file-extension }}
65+
file-path: ${{ inputs.file-path }}
2866

2967
- name: Summarize results
3068
shell: bash

0 commit comments

Comments
 (0)