From 6dc0f6bda0cff943b268066b4956c62b9ade0474 Mon Sep 17 00:00:00 2001 From: Logan Nguyen Date: Thu, 3 Oct 2024 12:09:58 -0500 Subject: [PATCH] fix: updated create release branch step Signed-off-by: Logan Nguyen --- .github/workflows/release-automation.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-automation.yml b/.github/workflows/release-automation.yml index f9194b7f1..55c871c92 100644 --- a/.github/workflows/release-automation.yml +++ b/.github/workflows/release-automation.yml @@ -63,15 +63,15 @@ jobs: - name: Create and Switch to Release Branch run: | - if ! git ls-remote --exit-code --heads --quiet origin refs/heads/${RELEASE_BRANCH}; then + if git ls-remote --exit-code --heads --quiet origin refs/heads/${RELEASE_BRANCH}; then + git checkout ${RELEASE_BRANCH} + else git checkout -b ${RELEASE_BRANCH} git push -u origin ${RELEASE_BRANCH} # create a PR to bump main branch to the next snapshot version echo "CREATE_PR=true" >> $GITHUB_ENV echo "PR_TITLE=chore(release): Bump versions for v$NEXT_VERSION_SNAPSHOT" >> $GITHUB_ENV - else - git checkout ${RELEASE_BRANCH} fi - name: Set up Node.js