Skip to content

Commit

Permalink
chore: simplify cicd rls script
Browse files Browse the repository at this point in the history
  • Loading branch information
jake-perkins committed Nov 25, 2024
1 parent 354c296 commit d7142ca
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions scripts/create-release-pr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit d7142ca

Please sign in to comment.