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 4444log " Checking documentation targets..."
4545for target in $( yq -r ' .builder.configs[].documentation_targets[]' .spi.yml) ; do
4646 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
4849done
4950
5051log " ✅ Found no documentation issues."
Original file line number Diff line number Diff line change 2323 type : string
2424 description : " Container image for the docs check job. Defaults to latest Swift Ubuntu image."
2525 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 : " "
2630 unacceptable_language_check_enabled :
2731 type : boolean
2832 description : " Boolean to enable the acceptable language check job. Defaults to true."
@@ -123,6 +127,8 @@ jobs:
123127 if : ${{ inputs.linux_pre_build_command }}
124128 run : ${{ inputs.linux_pre_build_command }}
125129 - name : Run documentation check
130+ env :
131+ ADDITIONAL_DOCC_ARGUMENTS : ${{ inputs.docs_check_additional_arguments }}
126132 run : |
127133 which curl yq || (apt -q update && apt -yq install curl yq)
128134 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