Skip to content

Commit

Permalink
Add extra-input-files for deeper file nesting if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy4495 committed Oct 1, 2024
1 parent a7c9f9e commit f1e4e65
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ on:
description: Message to display in job summary
required: false
type: string
extra-input-files:
description: Additional files to scan for links beyond default *.md and **/*.md
required: false
type: string
override-args:
description: Override default arguments (see https://github.com/lycheeverse/lychee#commandline-parameters)
required: false
Expand All @@ -51,7 +55,8 @@ jobs:
# args: --base . --verbose --no-progress -a '200,403,429,500' './**/*.md'
# args: --config ./.github/workflows/lychee.toml './**/*.md'
# Need to use ./*.md _and_ ./**/.md because runner shell glob processing does not include current dir
args: ${{ inputs.exclude }} --verbose --no-progress -a '200,403,429,500' --base . ./*.md ./*/*.md
# If there are files more than one directory below ., then need to add as extra-input-files
args: ${{ inputs.exclude }} --verbose --no-progress -a '200,403,429,500' --base . ./*.md ./*/*.md ${{ inputs.extra-input-files }}
fail: true
- name: Link Checker user-supplied args
if: ${{ inputs.override-args }}
Expand Down

0 comments on commit f1e4e65

Please sign in to comment.