diff --git a/Localize/localize-pipeline.yml b/Localize/localize-pipeline.yml index cef451c3a..444f93e5d 100644 --- a/Localize/localize-pipeline.yml +++ b/Localize/localize-pipeline.yml @@ -71,10 +71,16 @@ stages: git checkout -b $updateBranch - Remove-Item -Recurse -Force Localize - + if (Test-Path -Path Localize) { + Remove-Item -Recurse -Force Localize + } + + if (Test-Path -Path OneLocBuild) { + Remove-Item -Recurse -Force OneLocBuild + } + git add -A - git commit -m "Removing Localize folder" + git commit -m "Removing Localize and OneLocBuild folder" git push origin $updateBranch displayName: Create and push localization update branch condition: and(succeeded(), or(and(eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule')), eq(variables['build.reason'], 'Manual')))