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