-
-
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
354c296
commit d7142ca
Showing
1 changed file
with
3 additions
and
8 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 |
---|---|---|
|
@@ -42,14 +42,9 @@ git config user.email [email protected] | |
echo "Fetching from remote..." | ||
git fetch | ||
|
||
# Check if the release branch already exists on the remote | ||
if git branch -a | grep -q "remotes/origin/${RELEASE_BRANCH_NAME}"; then | ||
echo "Release branch exists on remote, checking out." | ||
git checkout "${RELEASE_BRANCH_NAME}" | ||
else | ||
echo "Release branch does not exist on remote, creating from ${BASE_BRANCH}." | ||
git checkout -b "${RELEASE_BRANCH_NAME}" | ||
fi | ||
# Check out the existing release branch from the remote | ||
echo "Checking out the release branch: ${RELEASE_BRANCH_NAME}" | ||
git checkout "${RELEASE_BRANCH_NAME}" | ||
|
||
echo "Release Branch Checked Out" | ||
|
||
|