Skip to content

Commit 0fdf85d

Browse files
authored
Wrap the onelocbuild build section with a sourcebranch check. (#112458)
1 parent e35e2be commit 0fdf85d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

eng/pipelines/runtime-official.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,13 @@ extends:
4444
# Localization build
4545
#
4646

47-
- template: /eng/common/templates-official/job/onelocbuild.yml
48-
parameters:
49-
MirrorRepo: runtime
50-
MirrorBranch: main
51-
LclSource: lclFilesfromPackage
52-
LclPackageId: 'LCL-JUNO-PROD-RUNTIME'
47+
- ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/main') }}:
48+
- template: /eng/common/templates-official/job/onelocbuild.yml
49+
parameters:
50+
MirrorRepo: runtime
51+
MirrorBranch: main
52+
LclSource: lclFilesfromPackage
53+
LclPackageId: 'LCL-JUNO-PROD-RUNTIME'
5354

5455
#
5556
# Source Index Build

0 commit comments

Comments
 (0)