Skip to content

Commit

Permalink
Merge pull request #6111 from dibarbet/prerelease_flag
Browse files Browse the repository at this point in the history
Cherrypick branch fix to prerelease branch
  • Loading branch information
dibarbet authored Aug 11, 2023
2 parents e7839c5 + fbe8160 commit 7b7da92
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions azure-pipelines-official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ trigger:
pr: none

variables:
- name: prereleaseFlag
value: ''
${{ if eq(variables['Build.SourceBranchName'], 'release') }}:
prereleaseFlag: ''
${{ else }}:
prereleaseFlag: '--prerelease'

stages:
- stage: Build
Expand Down
6 changes: 4 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ pr:
- main

variables:
- name: prereleaseFlag
value: ''
${{ if eq(variables['Build.SourceBranchName'], 'release') }}:
prereleaseFlag: ''
${{ else }}:
prereleaseFlag: '--prerelease'

stages:
- stage: Build
Expand Down

0 comments on commit 7b7da92

Please sign in to comment.