Skip to content

Commit 121533c

Browse files
authored
Add OneLocBuild removal to the localization pipeline (#804)
* Add OneLocBuild removal to the pipeline * fix ignore error to double if Co-authored-by: Ilya Kuleshov <[email protected]>
1 parent 32df82f commit 121533c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Localize/localize-pipeline.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,16 @@ stages:
7171
7272
git checkout -b $updateBranch
7373
74-
Remove-Item -Recurse -Force Localize
75-
74+
if (Test-Path -Path Localize) {
75+
Remove-Item -Recurse -Force Localize
76+
}
77+
78+
if (Test-Path -Path OneLocBuild) {
79+
Remove-Item -Recurse -Force OneLocBuild
80+
}
81+
7682
git add -A
77-
git commit -m "Removing Localize folder"
83+
git commit -m "Removing Localize and OneLocBuild folder"
7884
git push origin $updateBranch
7985
displayName: Create and push localization update branch
8086
condition: and(succeeded(), or(and(eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule')), eq(variables['build.reason'], 'Manual')))

0 commit comments

Comments
 (0)