From 00bac59d8dfb143194379991aee356c02fc7cbf4 Mon Sep 17 00:00:00 2001 From: Doug Bunting <6431421+dougbu@users.noreply.github.com> Date: Thu, 26 Jan 2023 14:06:52 -0800 Subject: [PATCH] Support manual loc builds creating a PR - we sometimes want / need to get a new loc PR faster than the schedule --- .azure/pipelines/localization.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.azure/pipelines/localization.yml b/.azure/pipelines/localization.yml index 7cc64afe20ce..8099832a1480 100644 --- a/.azure/pipelines/localization.yml +++ b/.azure/pipelines/localization.yml @@ -15,6 +15,13 @@ schedules: pr: none trigger: none +parameters: +# Choose whether manual builds should create a loc PR. This parameter value is ignored for scheduled builds. +- name: createPr + default: false + displayName: Create a OneLocBuild pull request? + type: boolean + variables: - name: _TeamName value: AspNetCore @@ -23,7 +30,7 @@ jobs: - ${{ if and(ne(variables['System.TeamProject'], 'public'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.Reason'], 'Manual'))) }}: - template: /eng/common/templates/job/onelocbuild.yml parameters: - CreatePr: ${{ ne(variables['Build.Reason'], 'Manual') }} + CreatePr: ${{ or(ne(variables['Build.Reason'], 'Manual'), eq(parameters.createPr, 'true')) }} LclPackageId: 'LCL-JUNO-PROD-ASPNETCORE' LclSource: lclFilesFromPackage MirrorRepo: aspnetcore