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]>
(cherry picked from commit 9922112)
  • Loading branch information
AAndrisa committed Apr 1, 2024
1 parent e0a8f31 commit fe46b43
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 @@ -5,6 +5,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(replace(variables['System.PullRequest.TargetBranch'], 'libad9361-iio-v0', 'libiio-v0'), 'master', 'main')) ]
${{ else }}:
Expand Down

0 comments on commit fe46b43

Please sign in to comment.