-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2259b8
commit 6ad6268
Showing
1 changed file
with
13 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -39,8 +39,20 @@ echo "Configuring git.." | |
git config user.name metamaskbot | ||
git config user.email [email protected] | ||
|
||
echo "Fetching from remote..." | ||
git fetch | ||
|
||
echo "Checking out ${RELEASE_BRANCH_NAME}" | ||
git checkout "${RELEASE_BRANCH_NAME}" | ||
|
||
# Check for branch existence | ||
if git branch -a | grep -q "remotes/origin/${RELEASE_BRANCH_NAME}"; then | ||
echo "Branch exists, checking out." | ||
git checkout -b "${RELEASE_BRANCH_NAME}" origin/"${RELEASE_BRANCH_NAME}" | ||
else | ||
echo "Branch does not exist." | ||
exit 1 | ||
fi | ||
|
||
echo "Release Branch Checked Out" | ||
|
||
echo "Running version update scripts.." | ||
|