From bc6e95963fb54575ee3600d9eff03603cfbccf54 Mon Sep 17 00:00:00 2001 From: Eric Ribeiro Date: Thu, 5 May 2022 11:29:29 -0700 Subject: [PATCH] fix: check branch pattern before env vars (#350) --- src/scripts/notify.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/notify.sh b/src/scripts/notify.sh index c098e8e4..289801d9 100644 --- a/src/scripts/notify.sh +++ b/src/scripts/notify.sh @@ -177,11 +177,11 @@ SetupLogs() { # This is done so this script may be tested. ORB_TEST_ENV="bats-core" if [ "${0#*"$ORB_TEST_ENV"}" = "$0" ]; then + . "/tmp/SLACK_JOB_STATUS" + ShouldPost SetupEnvVars SetupLogs CheckEnvVars - . "/tmp/SLACK_JOB_STATUS" - ShouldPost InstallJq BuildMessageBody PostToSlack