From 7219e68164e7d24346a7aebbf0b28fc021e475f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20Lev=C3=A9?= Date: Wed, 20 Mar 2024 17:14:52 +0100 Subject: [PATCH] fix: localization pipeline should run only on main (#2618) --- azure-pipelines-official.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/azure-pipelines-official.yml b/azure-pipelines-official.yml index 16dcec3201..968a686245 100644 --- a/azure-pipelines-official.yml +++ b/azure-pipelines-official.yml @@ -138,7 +138,7 @@ extends: -ci name: Test displayName: Test - + # Remove temporary artifacts to avoid finding binskim issues for exes we don't own. - pwsh: | Remove-Item -Path $(Build.SourcesDirectory)/artifacts/tmp -Recurse -Force @@ -186,11 +186,12 @@ extends: name: Test displayName: Tests - - template: /eng/common/templates-official/job/onelocbuild.yml@self - parameters: - GitHubOrg: microsoft - MirrorRepo: testfx - LclSource: lclFilesfromPackage - LclPackageId: 'LCL-JUNO-PROD-TESTFX' + - ${{ if eq(variables['Build.SourceBranchName'], 'main') }}: + - template: /eng/common/templates-official/job/onelocbuild.yml@self + parameters: + GitHubOrg: microsoft + MirrorRepo: testfx + LclSource: lclFilesfromPackage + LclPackageId: 'LCL-JUNO-PROD-TESTFX' - template: eng\common\templates-official\post-build\post-build.yml@self