From 8b8d61362d2dd9e80d537eb0974d580f367a9f54 Mon Sep 17 00:00:00 2001 From: Vasily Pelikh <2010720+vpelikh@users.noreply.github.com> Date: Mon, 6 Jul 2026 15:59:15 +0300 Subject: [PATCH] Move SNAPSHOT bump before gh-pages checkout The Bump SNAPSHOT step sources CI/bump-snapshot.sh from the workspace, but the preceding Checkout gh-pages overwrites the working tree with the gh-pages branch where that script doesn't exist. Reorder the steps so the bump runs while master is still checked out. --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 26169da1d..56ad53ac2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -82,6 +82,12 @@ jobs: if: success() run: . ./CI/prepare-javadocs.sh + - name: Bump SNAPSHOT version on master (final release only) + if: success() && github.event.inputs.release_type == 'release' + run: . ./CI/bump-snapshot.sh + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Checkout gh-pages uses: actions/checkout@v7 with: @@ -100,12 +106,6 @@ jobs: env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Bump SNAPSHOT version on main (final release only) - if: success() && github.event.inputs.release_type == 'release' - run: . ./CI/bump-snapshot.sh - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - env: MAVEN_USERNAME: ${{ secrets.MAVEN_CENTRAL_USERNAME }} MAVEN_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PASSWORD }}