From b66fddc05e81eb4a8d641f6ef09f053ebdcaa8a2 Mon Sep 17 00:00:00 2001
From: Doug Bunting <6431421+dougbu@users.noreply.github.com>
Date: Fri, 1 Jul 2022 10:38:53 -0700
Subject: [PATCH] Add use of onelocbuild.yml (#42536)

- part of #36998
- use a separate pipeline to avoid default submodule checkout
  - we will handle dotnet/spa-templates localization separately
---
 .azure/pipelines/localization.yml | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 .azure/pipelines/localization.yml

diff --git a/.azure/pipelines/localization.yml b/.azure/pipelines/localization.yml
new file mode 100644
index 00000000000..81fdb4d99aa
--- /dev/null
+++ b/.azure/pipelines/localization.yml
@@ -0,0 +1,29 @@
+#
+# See https://docs.microsoft.com/en-us/vsts/pipelines/yaml-schema for details on this file.
+#
+
+schedules:
+# Cron timezone is UTC.
+- cron: "0 18 * * *"
+  displayName: Run tests daily at 6 PM UTC (11 AM PT)
+  branches:
+    include:
+    - main
+  always: true
+
+# Do not run in PR builds nor support other triggers.
+pr: none
+trigger: none
+
+variables:
+- name: _TeamName
+  value: AspNetCore
+
+jobs:
+# When doing this for real, use eq(variables['Build.SourceBranch'], 'refs/heads/main') instead of PR check.
+- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}:
+  - template: /eng/common/templates/job/onelocbuild.yml
+    parameters:
+      LclPackageId: 'LCL-JUNO-PROD-ASPNETCORE'
+      LclSource: lclFilesFromPackage
+      MirrorRepo: aspnetcore
-- 
GitLab