From 3043b14024e9cd922f9350397c8893387387f97f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Osipiuk?= Date: Wed, 25 Sep 2024 13:20:40 +0200 Subject: [PATCH] Checkout release tag --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c4e9832f8..c94705ace 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,10 +69,12 @@ jobs: run: | ./mvnw -B release:perform -Poss-release,oss-stage - - name: Display git status and history + - name: Display git status and history, checkout release tag run: | git status git log --oneline -n 2 + # Checkout version so that JReleaser runs from a tagged commit + git checkout "${VERSION}" - name: List locally staged artifacts run: | @@ -97,6 +99,7 @@ jobs: if: ${{ inputs.push }} run: | git status + git describe git push origin master - name: Unlock branch after a release