Skip to content

Commit 8ac4528

Browse files
committed
Fix bad substituation error
1 parent fadb7dc commit 8ac4528

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/template_release_version.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ jobs:
5656
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
# remove prefix and suffix
59-
OLD_VERSION=${${OLD_TAG_NAME#${TAG_PREFIX}}%${TAG_SUFFIX}}
59+
OLD_VERSION=${OLD_TAG_NAME#${TAG_PREFIX}}
60+
OLD_VERSION=${OLD_VERSION%${TAG_SUFFIX}}
6061
6162
PARTS=(${OLD_VERSION//./ })
6263
COUNTER=${PARTS[2]}

0 commit comments

Comments
 (0)