From 6d49625993238b2bed9713bae279991c83c489d4 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Fri, 9 Feb 2024 15:54:30 +0100 Subject: [PATCH] ci: remove git ahead check in release workflow Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- .github/workflows/release.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b613fdce0..d811dd12f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -88,17 +88,6 @@ jobs: echo "NEXT_PATCH_PRE_WITHOUT_V=${NEXT_PATCH_PRE_WITHOUT_V}" } | tee -a "$GITHUB_OUTPUT" echo "RELEASE_BRANCH=${RELEASE_BRANCH}" | tee -a "$GITHUB_ENV" - - name: Check if we are strictly ahead of the release branch (if it exists) - run: | - git fetch - git pull - git checkout "${RELEASE_BRANCH}" || exit 0 - git checkout "${WORKING_BRANCH}" - ahead=$(git rev-list HEAD --not "${RELEASE_BRANCH}" | wc -l) - if [[ "${ahead}" -eq 0 ]]; then - echo "The current branch is not strictly ahead of the release branch. Please rebase." - exit 1 - fi update-main: name: Update main branch