From 0fdf85d5c50997999f77e019bc26272212856f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20S=C3=A1nchez=20L=C3=B3pez?= <1175054+carlossanlop@users.noreply.github.com> Date: Tue, 11 Feb 2025 20:03:56 -0800 Subject: [PATCH] Wrap the onelocbuild build section with a sourcebranch check. (#112458) --- eng/pipelines/runtime-official.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/eng/pipelines/runtime-official.yml b/eng/pipelines/runtime-official.yml index eb3d2c79eb7e60..2212d4929e8f84 100644 --- a/eng/pipelines/runtime-official.yml +++ b/eng/pipelines/runtime-official.yml @@ -44,12 +44,13 @@ extends: # Localization build # - - template: /eng/common/templates-official/job/onelocbuild.yml - parameters: - MirrorRepo: runtime - MirrorBranch: main - LclSource: lclFilesfromPackage - LclPackageId: 'LCL-JUNO-PROD-RUNTIME' + - ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/main') }}: + - template: /eng/common/templates-official/job/onelocbuild.yml + parameters: + MirrorRepo: runtime + MirrorBranch: main + LclSource: lclFilesfromPackage + LclPackageId: 'LCL-JUNO-PROD-RUNTIME' # # Source Index Build