[Buildkite] Fix unbound variable for docs bypass (#711)

pull/710/head^2 v4.7.0
Amir Zarrinkafsh 2020-03-15 22:01:52 +11:00 committed by GitHub
parent a24ca937cd
commit 06e36f89e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,8 @@ if [[ $BUILDKITE_TAG == "" ]]; then
else else
CI_DOCS_BYPASS=$(git diff --name-only `git merge-base --fork-point origin/master` | sed -rn '/^docs\/.*/!{q1}' && echo true || echo false) CI_DOCS_BYPASS=$(git diff --name-only `git merge-base --fork-point origin/master` | sed -rn '/^docs\/.*/!{q1}' && echo true || echo false)
fi fi
else
CI_DOCS_BYPASS="false"
fi fi
cat << EOF cat << EOF

View File

@ -11,6 +11,8 @@ if [[ $BUILDKITE_TAG == "" ]]; then
if [[ $CI_DOCS_BYPASS == "true" ]]; then if [[ $CI_DOCS_BYPASS == "true" ]]; then
cat .buildkite/annotations/documentation | buildkite-agent annotate --style "info" --context "ctx-info" cat .buildkite/annotations/documentation | buildkite-agent annotate --style "info" --context "ctx-info"
fi fi
else
CI_DOCS_BYPASS="false"
fi fi
cat << EOF cat << EOF