Skip to content

Commit

Permalink
Try to pull target branch's sonic-buildimage
Browse files Browse the repository at this point in the history
Signed-off-by: Saikrishna Arcot <[email protected]>
  • Loading branch information
saiarcot895 committed Oct 23, 2023
1 parent 86d528d commit c221a5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ resources:
type: github
name: sonic-net/sonic-buildimage
endpoint: build
${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
ref: $(System.PullRequest.TargetBranch)
${{ else }}:
ref: $(Build.SourceBranchName)

variables:
- name: BUILD_BRANCH
Expand Down

0 comments on commit c221a5d

Please sign in to comment.