Skip to content

Commit 8214544

Browse files
committed
Fix last release fetching
1 parent 62dd2dc commit 8214544

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/template_release_version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
COUNTER=0
5454
else
5555
# fetch last tag name from github releases which are not drafts or pre-releases and starts with the given prefix
56-
OLD_TAG_NAME=`gh release list -R ${{ github.repository }} --limit 100 --exclude-drafts --exclude-pre-releases --json tagName --jq '[.[] | select(.tagName | startswith("${TAG_PREFIX}") and endswith("${TAG_SUFFIX}"))] | .[0].tagName'`
56+
OLD_TAG_NAME=$(gh release list -R ${{ github.repository }} --limit 100 --exclude-drafts --exclude-pre-releases --json tagName --jq "[.[] | select(.tagName | startswith(\"${TAG_PREFIX}\") and endswith(\"${TAG_SUFFIX}\"))] | .[0].tagName")
5757
5858
echo "Last tag name: ${OLD_TAG_NAME}"
5959

0 commit comments

Comments
 (0)