Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .azure-pipelines-templates/deploy_aci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,10 @@ jobs:
set -ex
RETRIES=500
HEAD_SHA=`git rev-parse HEAD`
if [ $(System.PullRequest.PullRequestId) != "" ]; then
if [ $(Build.SourceBranchName) == "merge" ]; then
# If this is the case, we're running in a PR, and the SHA we really want is in the
# commit message of the last commit (which merges it into target)
echo "Running in a PR, getting the SHA from the commit message"
LAST_COMMIT=(`git log -1 --pretty=%B`)
HEAD_SHA=${LAST_COMMIT[1]}
fi
Expand Down