Skip to content

Commit b922de7

Browse files
authored
Support manual loc builds creating a PR (#46278)
- we sometimes want / need to get a new loc PR faster than the schedule
1 parent 9ffffa4 commit b922de7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.azure/pipelines/localization.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ schedules:
1515
pr: none
1616
trigger: none
1717

18+
parameters:
19+
# Choose whether manual builds should create a loc PR. This parameter value is ignored for scheduled builds.
20+
- name: createPr
21+
default: false
22+
displayName: Create a OneLocBuild pull request?
23+
type: boolean
24+
1825
variables:
1926
- name: _TeamName
2027
value: AspNetCore
@@ -23,7 +30,7 @@ jobs:
2330
- ${{ if and(ne(variables['System.TeamProject'], 'public'), or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.Reason'], 'Manual'))) }}:
2431
- template: /eng/common/templates/job/onelocbuild.yml
2532
parameters:
26-
CreatePr: ${{ ne(variables['Build.Reason'], 'Manual') }}
33+
CreatePr: ${{ or(ne(variables['Build.Reason'], 'Manual'), eq(parameters.createPr, 'true')) }}
2734
LclPackageId: 'LCL-JUNO-PROD-ASPNETCORE'
2835
LclSource: lclFilesFromPackage
2936
MirrorRepo: aspnetcore

0 commit comments

Comments
 (0)