Skip to content

Commit 1ff222b

Browse files
authored
update localize pipeline remove-item command (#137)
Co-authored-by: Ilya Kuleshov <[email protected]>
1 parent 1e2aa43 commit 1ff222b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Localize/localize-pipeline.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,16 @@ stages:
6868
6969
git checkout -b $updateBranch
7070
71-
Remove-Item -Recurse -Force Localize
71+
if (Test-Path -Path Localize) {
72+
Remove-Item -Recurse -Force Localize
73+
}
74+
75+
if (Test-Path -Path OneLocBuild) {
76+
Remove-Item -Recurse -Force OneLocBuild
77+
}
7278
7379
git add -A
74-
git commit -m "Removing Localize folder"
80+
git commit -m "Removing Localize and OneLocBuild folder"
7581
git push origin $updateBranch
7682
displayName: Create and push localization update branch
7783
condition: and(succeeded(), or(and(eq(variables['SHOULDCREATEPR'], 'True'), eq(variables['build.reason'], 'Schedule')), eq(variables['build.reason'], 'Manual')))

0 commit comments

Comments
 (0)