Skip to content

Commit

Permalink
azure-pipeline.yml: add downloadBranch for release branch case
Browse files Browse the repository at this point in the history
Signed-off-by: Andreea Andrisan <[email protected]>
  • Loading branch information
AAndrisa committed Mar 29, 2024
1 parent 826dbd3 commit b16377f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ variables:
downloadBranch: 'refs/heads/libiio-v0'
${{ elseif eq(variables['Build.SourceBranchName'], 'next_stable') }}:
downloadBranch: 'refs/heads/next_stable'
${{ elseif startsWith(variables['Build.SourceBranchName'], '20') }}:
downloadBranch: $(Build.SourceBranch)
${{ elseif eq(variables['Build.Reason'], 'PullRequest') }}:
downloadBranch: $[ format('refs/heads/{0}',replace(variables['System.PullRequest.TargetBranch'], 'libad9361-iio-v0', 'libiio-v0')) ]
${{ else }}:
Expand Down

0 comments on commit b16377f

Please sign in to comment.