Skip to content

Commit 3e87dee

Browse files
authored
Only run OneLoc task if it's the latest release branch (#7104) (#7120)
* Only run OneLoc task if it's the latest release branch
1 parent 00d0578 commit 3e87dee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

eng/pipelines/official.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ extends:
5353
- template: /eng/pipelines/templates/pipeline.yml@self
5454
parameters:
5555
isOfficialBuild: true
56-
${{ if or(eq(variables['Build.SourceBranch'], 'refs/heads/dev'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/')) }}:
56+
${{ if or(eq(variables['Build.SourceBranch'], 'refs/heads/dev'), eq(variables['Build.SourceBranch'], format('refs/heads/{0}', variables['OneLocReleaseBranch']))) }}:
5757
RunOneLocBuild: true
5858
RunBuildForPublishing: ${{parameters.RunBuildForPublishing}}
5959
SigningType: ${{ parameters.SigningType }}

0 commit comments

Comments
 (0)