Skip to content

Commit

Permalink
Change var name (#1649)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyharisch authored May 2, 2023
1 parent 777d771 commit 3fc1451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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]}
Expand Down

0 comments on commit 3fc1451

Please sign in to comment.