From 371382be0f557c3207b5e9758080ea1757fb3e25 Mon Sep 17 00:00:00 2001 From: Jon Fortescue Date: Wed, 16 Jun 2021 13:05:29 -0700 Subject: [PATCH 1/2] Turn on loc PRs --- eng/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipeline.yml b/eng/pipeline.yml index 94b8c9dd357..9c5a16a0aea 100644 --- a/eng/pipeline.yml +++ b/eng/pipeline.yml @@ -13,7 +13,7 @@ jobs: - ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: - template: /eng/common/templates/job/onelocbuild.yml parameters: - CreatePr: false + MirrorRepo: wpf LclSource: lclFilesfromPackage LclPackageId: 'LCL-JUNO-PROD-WPF' - template: /eng/common/templates/jobs/jobs.yml From 8feb17836105f7dd350919db487af64db7966b60 Mon Sep 17 00:00:00 2001 From: Jon Fortescue Date: Fri, 18 Jun 2021 14:52:48 -0700 Subject: [PATCH 2/2] add condition --- eng/pipeline.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipeline.yml b/eng/pipeline.yml index 9c5a16a0aea..3dfe391e1e0 100644 --- a/eng/pipeline.yml +++ b/eng/pipeline.yml @@ -10,7 +10,7 @@ parameters: repoName: dotnet/wpf jobs: -- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: +- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest'), eq(variables['Build.SourceBranch'], 'refs/heads/main')) }}: - template: /eng/common/templates/job/onelocbuild.yml parameters: MirrorRepo: wpf