-
Notifications
You must be signed in to change notification settings - Fork 867
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Aleksandr Levochkin <107044793+aleksandrlevochkin@users.noreply.github.com>
- Loading branch information
1 parent
62d473c
commit 4dff9a5
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
git config user.email "azure-pipelines-bot@microsoft.com" | ||
git config user.name "azure-pipelines-bot" | ||
|
||
git checkout -f origin/$env:TARGET_BRANCH | ||
|
||
if ($LASTEXITCODE -ne 0){ | ||
Write-Error "git checkout failed with exit code $LASTEXITCODE" -ErrorAction Stop | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters