From 3fc14517e0e380f13638fefb409c0cec2f22b6bc Mon Sep 17 00:00:00 2001 From: Jeremy Harisch <48282931+jeremyharisch@users.noreply.github.com> Date: Tue, 2 May 2023 10:25:01 +0200 Subject: [PATCH] Change var name (#1649) --- hack/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/release.sh b/hack/release.sh index df8994643..2ba12e146 100755 --- a/hack/release.sh +++ b/hack/release.sh @@ -23,7 +23,7 @@ get_new_release_version() { get_previous_release_version() { # get the list of tags in a reverse chronological order excluding release candidate tags TAG_LIST_WITHOUT_RC=($(git tag --sort=-creatordate | grep -v -e "-rc")) - if [[ $NEW_RELEASE_VERSION == *"-rc"* ]]; then + if [[ $GORELEASER_CURRENT_TAG == *"-rc"* ]]; then export GORELEASER_PREVIOUS_TAG=${TAG_LIST_WITHOUT_RC[0]} else export GORELEASER_PREVIOUS_TAG=${TAG_LIST_WITHOUT_RC[1]}