diff --git a/tools/devops/automation/build-lego.yml b/tools/devops/automation/build-lego.yml index 34a643f9d1bd..4c52d4df3ae8 100644 --- a/tools/devops/automation/build-lego.yml +++ b/tools/devops/automation/build-lego.yml @@ -54,7 +54,7 @@ trigger: stages: - ${{ if eq(parameters.runGovernanceTests, true) }}: - - stage: governance_checks + - stage: LocalizationChanges displayName: 'Governance Checks' jobs: - job: governance @@ -84,11 +84,18 @@ stages: git fetch origin + # create a new branch from the Localization branch for our PR in case the Localization branch gets overwritten + git checkout Localization + git checkout -b Localization-Automated-$(Build.BuildNumber) + git push origin Localization-Automated-$(Build.BuildNumber) + + git checkout main + gh pr create ` --title "Bring changes from Localization branch #$(Build.BuildNumber)" ` --body "The OneLoc team creates these translations to be consumed later on in the second step of the Localization process. We need to bring these into the main branch in order to continue the process." ` --base main ` - --head Localization ` + --head Localization-Automated-$(Build.BuildNumber) ` --label not-notes-worthy ` --milestone Future ` --draft=false