From 14a71a6e770a4f71bc067013ccfaae72cd25d956 Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Mon, 4 Nov 2024 12:38:39 -0800 Subject: [PATCH] infra: fix prev tag calculation (#27890) --- .github/workflows/_release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index 17d8987b27..9c348b246f 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -95,7 +95,7 @@ jobs: PKG_NAME: ${{ needs.build.outputs.pkg-name }} VERSION: ${{ needs.build.outputs.version }} run: | - PREV_TAG="${curr_version%.*}.$(( ${curr_version##*.} - 1 ))"; [[ "${curr_version##*.}" -eq 0 ]] && PREV_TAG="" + PREV_TAG="$PKG_NAME==${VERSION%.*}.$(( ${VERSION##*.} - 1 ))"; [[ "${VERSION##*.}" -eq 0 ]] && PREV_TAG="" # backup case if releasing e.g. 0.3.0, looks up last release # note if last release (chronologically) was e.g. 0.1.47 it will get