Skip to content

Commit

Permalink
Fix variable in daily slack notifications (digital-asset#6221)
Browse files Browse the repository at this point in the history
Currently the report fails with variables[Build.SourceBranchName]:
command not found which is obviously not what we want (it’s mixing up
the syntax in Azure’s yaml config and Bash). Looking at the
code in the tell-slack-failed.yml, this one does seem to work but I
haven’t tested this so :crossed-fingers:.

changelog_begin
changelog_end
  • Loading branch information
cocreature authored Jun 4, 2020
1 parent 2fe320f commit f1822f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ci/daily_tell_slack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ steps:
MESSAGE=${{ parameters['success-message'] }}
fi
PAYLOAD="{\"text\":\"$MESSAGE\n\"}"
if [ "$(variables['Build.SourceBranchName'])" = "master" ]; then
if [ "$(Build.SourceBranchName)" = "master" ]; then
curl -XPOST \
-i \
-H 'Content-type: application/json' \
Expand Down

0 comments on commit f1822f6

Please sign in to comment.