diff --git a/.github/workflows/release-automation.yml b/.github/workflows/release-automation.yml index f9194b7f1..796e129a6 100644 --- a/.github/workflows/release-automation.yml +++ b/.github/workflows/release-automation.yml @@ -63,6 +63,7 @@ jobs: - name: Create and Switch to Release Branch run: | + git fetch origin if ! git ls-remote --exit-code --heads --quiet origin refs/heads/${RELEASE_BRANCH}; then git checkout -b ${RELEASE_BRANCH} git push -u origin ${RELEASE_BRANCH}