From 06e36f89e36e7f5db1a40605381c1784e114071b Mon Sep 17 00:00:00 2001 From: Amir Zarrinkafsh Date: Sun, 15 Mar 2020 22:01:52 +1100 Subject: [PATCH] [Buildkite] Fix unbound variable for docs bypass (#711) --- .buildkite/deployment.sh | 2 ++ .buildkite/pipeline.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.buildkite/deployment.sh b/.buildkite/deployment.sh index 027688f5f..c16e8a562 100755 --- a/.buildkite/deployment.sh +++ b/.buildkite/deployment.sh @@ -7,6 +7,8 @@ if [[ $BUILDKITE_TAG == "" ]]; then else CI_DOCS_BYPASS=$(git diff --name-only `git merge-base --fork-point origin/master` | sed -rn '/^docs\/.*/!{q1}' && echo true || echo false) fi +else + CI_DOCS_BYPASS="false" fi cat << EOF diff --git a/.buildkite/pipeline.sh b/.buildkite/pipeline.sh index b25119807..7afe91f6f 100755 --- a/.buildkite/pipeline.sh +++ b/.buildkite/pipeline.sh @@ -11,6 +11,8 @@ if [[ $BUILDKITE_TAG == "" ]]; then if [[ $CI_DOCS_BYPASS == "true" ]]; then cat .buildkite/annotations/documentation | buildkite-agent annotate --style "info" --context "ctx-info" fi +else + CI_DOCS_BYPASS="false" fi cat << EOF