From 369f7d4b2a89bf108874df5baee0b39bfcc4a5e3 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> (cherry picked from commit fe6bce39816d52419d98df698b9581bb6e3b0e1b) --- .github/workflows/release.yml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b613fdce00..d811dd12f4 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