diff --git a/.buildkite/scripts/common.sh b/.buildkite/scripts/common.sh index dd2b3c531d7..d2b18f03c84 100755 --- a/.buildkite/scripts/common.sh +++ b/.buildkite/scripts/common.sh @@ -590,10 +590,10 @@ is_pr_affected() { } is_pr() { - if [[ "${BUILDKITE_PULL_REQUEST}" == "false" || "${BUILDKITE_TAG}" == "" ]]; then - return 0 + if [[ "${BUILDKITE_PULL_REQUEST}" == "false" && "${BUILDKITE_TAG}" == "" ]]; then + return 1 fi - return 1 + return 0 } kubernetes_service_deployer_used() { diff --git a/.buildkite/scripts/process_benchmarks.sh b/.buildkite/scripts/process_benchmarks.sh index c9ad209106b..22367d7125c 100755 --- a/.buildkite/scripts/process_benchmarks.sh +++ b/.buildkite/scripts/process_benchmarks.sh @@ -8,7 +8,7 @@ set -euo pipefail BENCHMARK_THRESHOLD=${BENCHMARK_THRESHOLD:-'15'} if ! is_pr ; then - echo "[benchmarks] Pull request build. Skip procesing benchmarks." + echo "[benchmarks] Not a pull request build. Skip procesing benchmarks." exit 0 fi