We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62dd2dc commit 8214544Copy full SHA for 8214544
.github/workflows/template_release_version.yml
@@ -53,7 +53,7 @@ jobs:
53
COUNTER=0
54
else
55
# 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'`
+ 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")
57
58
echo "Last tag name: ${OLD_TAG_NAME}"
59
0 commit comments