Skip to content

Commit 7830baf

Browse files
authored
Merge pull request #6116 from dibarbet/merge_prerelease
Merge prerelease to release
2 parents a606f3b + 7b7da92 commit 7830baf

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

azure-pipelines-official.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ trigger:
77
pr: none
88

99
variables:
10-
- name: prereleaseFlag
11-
value: ''
10+
${{ if eq(variables['Build.SourceBranchName'], 'release') }}:
11+
prereleaseFlag: ''
12+
${{ else }}:
13+
prereleaseFlag: '--prerelease'
1214

1315
stages:
1416
- stage: Build

azure-pipelines.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ pr:
1414
- main
1515

1616
variables:
17-
- name: prereleaseFlag
18-
value: ''
17+
${{ if eq(variables['Build.SourceBranchName'], 'release') }}:
18+
prereleaseFlag: ''
19+
${{ else }}:
20+
prereleaseFlag: '--prerelease'
1921

2022
stages:
2123
- stage: Build

0 commit comments

Comments
 (0)