From c7f8ad0897a88a656c4586d312edd03f8cea20ef Mon Sep 17 00:00:00 2001 From: Florian Hussonnois Date: Fri, 22 Mar 2024 22:49:02 +0100 Subject: [PATCH] chore: update release workflow --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f971da73..927f2193 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -193,7 +193,7 @@ jobs: - name: 'Release with JReleaser' env: - JRELEASER_BRANCH: ${GITHUB_REF#refs/heads/} + JRELEASER_BRANCH: ${{ needs.set-release-version.outputs.HEAD }} JRELEASER_GITHUB_TOKEN: ${{ secrets.PAT }} JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }} JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} @@ -223,4 +223,4 @@ jobs: run: | find . -name 'pom.xml' | xargs git add git commit -m "ci: bump version for next iteration to ${{ env.NEXT_VERSION }} 🤖" - git push origin HEAD:${GITHUB_REF#refs/heads/} + git push origin HEAD:${{ needs.set-release-version.outputs.HEAD }}