Skip to content

Commit

Permalink
fix: check branch pattern before env vars (#350)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricRibeiro authored May 5, 2022
1 parent a227ecd commit bc6e959
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scripts/notify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc6e959

Please sign in to comment.