Skip to content

Commit

Permalink
Fix running SNP pipeline against PR manually (#4808)
Browse files Browse the repository at this point in the history
  • Loading branch information
DomAyre authored Jan 9, 2023
1 parent bc374d4 commit 68a4b38
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 68a4b38

Please sign in to comment.