Skip to content

Commit 4dff9a5

Browse files
pwsh for release (#4638)
Co-authored-by: Aleksandr Levochkin <[email protected]>
1 parent 62d473c commit 4dff9a5

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
git config user.email "[email protected]"
2+
git config user.name "azure-pipelines-bot"
3+
4+
git checkout -f origin/$env:TARGET_BRANCH
5+
6+
if ($LASTEXITCODE -ne 0){
7+
Write-Error "git checkout failed with exit code $LASTEXITCODE" -ErrorAction Stop
8+
}

.vsts.release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,10 @@ extends:
172172
- checkout: self
173173
clean: true
174174

175-
- task: Bash@3
175+
- task: PowerShell@2
176176
displayName: Switch to release branch
177177
inputs:
178-
filePath: .azure-pipelines/scripts/switch-branch.sh
178+
filePath: .azure-pipelines/scripts/switch-branch.ps1
179179
env:
180180
TARGET_BRANCH: $(ReleaseBranch)
181181

0 commit comments

Comments
 (0)