WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit a5cc3d4

Browse files
authored
Condition OneLocBuild to only run for the main branch (#1536)
The OneLocBuild by default should only run on the main branch. If release branches need different localization, a separate package id needs to be created.
1 parent 478b2a5 commit a5cc3d4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

azure-pipelines.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ extends:
3737
publishAssetsImmediately: true
3838
isAssetlessBuild: true
3939
enableTelemetry: true
40-
- template: /eng/common/templates-official/job/onelocbuild.yml@self
41-
parameters:
42-
MirrorRepo: sourcelink
43-
LclSource: lclFilesfromPackage
44-
LclPackageId: 'LCL-JUNO-PROD-SOURCELINK'
40+
# The localization setup for main branch. Note difference in package ID. Should not be used with release/ branches.
41+
- ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/main') }}:
42+
- template: /eng/common/templates-official/job/onelocbuild.yml@self
43+
parameters:
44+
MirrorRepo: sourcelink
45+
LclSource: lclFilesfromPackage
46+
LclPackageId: 'LCL-JUNO-PROD-SOURCELINK'

0 commit comments

Comments
 (0)