File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 44
44
log " Checking documentation targets..."
45
45
for target in $( yq -r ' .builder.configs[].documentation_targets[]' .spi.yml) ; do
46
46
log " Checking target $target ..."
47
- swift package plugin generate-documentation --target " $target " --warnings-as-errors --analyze --level detailed
47
+ # shellcheck disable=SC2086 # We explicitly want to explode "$ADDITIONAL_DOCC_ARGUMENTS" into multiple arguments.
48
+ swift package plugin generate-documentation --target " $target " --warnings-as-errors --analyze --level detailed $ADDITIONAL_DOCC_ARGUMENTS
48
49
done
49
50
50
51
log " ✅ Found no documentation issues."
Original file line number Diff line number Diff line change 23
23
type : string
24
24
description : " Container image for the docs check job. Defaults to latest Swift Ubuntu image."
25
25
default : " swift:6.0-noble"
26
+ docs_check_additional_arguments :
27
+ type : string
28
+ description : " Additional arguments that should be passed to docc"
29
+ default : " "
26
30
unacceptable_language_check_enabled :
27
31
type : boolean
28
32
description : " Boolean to enable the acceptable language check job. Defaults to true."
@@ -123,6 +127,8 @@ jobs:
123
127
if : ${{ inputs.linux_pre_build_command }}
124
128
run : ${{ inputs.linux_pre_build_command }}
125
129
- name : Run documentation check
130
+ env :
131
+ ADDITIONAL_DOCC_ARGUMENTS : ${{ inputs.docs_check_additional_arguments }}
126
132
run : |
127
133
which curl yq || (apt -q update && apt -yq install curl yq)
128
134
curl -s https://raw.githubusercontent.com/swiftlang/github-workflows/refs/heads/main/.github/workflows/scripts/check-docs.sh | bash
You can’t perform that action at this time.
0 commit comments