From d7142ca53abde7be2f180e7b931575754dfe365f Mon Sep 17 00:00:00 2001 From: Jake Perkins Date: Mon, 25 Nov 2024 09:22:37 -0600 Subject: [PATCH] chore: simplify cicd rls script --- scripts/create-release-pr.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/create-release-pr.sh b/scripts/create-release-pr.sh index cd18864629d..a7b4e09a3ec 100755 --- a/scripts/create-release-pr.sh +++ b/scripts/create-release-pr.sh @@ -42,14 +42,9 @@ git config user.email metamaskbot@users.noreply.github.com 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"