|
15 | 15 | name: 'Markdown Link Check' |
16 | 16 | description: 'Check markdown links' |
17 | 17 |
|
| 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 | + |
18 | 50 | runs: |
19 | 51 | using: "composite" |
20 | 52 | steps: |
21 | 53 | - name: Run markdown link check |
22 | 54 | id: markdown-link-check |
23 | 55 | uses: tcort/github-action-markdown-link-check@v1 |
24 | 56 | 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: ${{ 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 }} |
28 | 66 |
|
29 | 67 | - name: Summarize results |
30 | 68 | shell: bash |
|
0 commit comments