Skip to content

Commit

Permalink
Update extensions-variables.yml to allow tags for release (#1918)
Browse files Browse the repository at this point in the history
  • Loading branch information
liliankasem authored Sep 20, 2023
1 parent b5f074b commit 145fefd
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions build/pipelines/templates/extensions-variables.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
variables:
${{ if not(contains(variables['Build.SourceBranch'], '/release/' )) }}:
buildNumberTemp: $(Build.BuildNumber)
${{ if contains(variables['Build.SourceBranch'], '/release/' ) }}:
isReleaseBuildTemp: true
buildNumber: $[variables.buildNumberTemp]
isReleaseBuild: $[variables.isReleaseBuildTemp]
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
variables:
${{ if and( not(contains(variables['Build.SourceBranch'], '/release/')), not(startsWith(variables['Build.SourceBranch'], 'refs/tags')) ) }}:
buildNumberTemp: $(Build.BuildNumber)
${{ if or( contains(variables['Build.SourceBranch'], '/release/'), startsWith(variables['Build.SourceBranch'], 'refs/tags') ) }}:
isReleaseBuildTemp: true
buildNumber: $[variables.buildNumberTemp]
isReleaseBuild: $[variables.isReleaseBuildTemp]
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'

0 comments on commit 145fefd

Please sign in to comment.