Skip to content

Commit b91213c

Browse files
authored
update check_docs.sh to support ADDITIONAL_DOCC_ARGUMENTS (#299)
In version 0.0.11, the ADDITIONAL_DOCC_ARGUMENTS environment variable is supported by the check-docs.sh script. Version 0.0.12 modified the check-docs.sh was updated in version 0.0.12 to not depend on the environment variable. However, this caused a regression for worlflows that were still using 0.0.11 as the defined environment variable was no longer being used. Update the check-docs.sh script to default the additional_docc_argument to the environment variable.
1 parent 380ada5 commit b91213c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/scripts/check-docs.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
##
1212
##===----------------------------------------------------------------------===##
1313

14-
set -euo pipefail
14+
set -xeuo pipefail
1515

1616
log() { printf -- "** %s\n" "$*" >&2; }
1717
error() { printf -- "** ERROR: %s\n" "$*" >&2; }
@@ -41,7 +41,7 @@ is_known_option() {
4141
}
4242

4343
analyze_flag="--analyze"
44-
additional_docc_arguments=""
44+
additional_docc_arguments="${ADDITIONAL_DOCC_ARGUMENTS:-}"
4545
docs_targets=""
4646
while [[ $# -gt 0 ]]; do
4747
case "$1" in

0 commit comments

Comments
 (0)