-
Notifications
You must be signed in to change notification settings - Fork 865
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix switch to target branch ci step (#4636)
- Loading branch information
1 parent
775ceba
commit d822230
Showing
4 changed files
with
17 additions
and
16 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
This file was deleted.
Oops, something went wrong.
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,11 @@ | ||
git config user.email "azure-pipelines-bot@microsoft.com" | ||
git config user.name "azure-pipelines-bot" | ||
|
||
git checkout -f origin/$TARGET_BRANCH | ||
|
||
last_exit_code=$? | ||
|
||
if [[ $last_exit_code != 0 ]]; then | ||
echo "git checkout failed with exit code $last_exit_code" | ||
exit 1 | ||
fi |
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