Skip to content

Commit 55a6152

Browse files
authored
Update release.yml
1 parent c7de2f6 commit 55a6152

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ jobs:
106106
# Increment the tag, based on the previous tag (v0001, v0002, ...)
107107
lastTag=$(git tag -l --sort=-v:refname | grep -E "^v[0-9]{4}$" | head -n 1)
108108
lastTagNumber=${lastTag:1}
109-
newTagNumber=$((lastTagNumber + 1))
109+
# Force base 10 for numbers, even if they lead with zero (which would normally be considered octal)
110+
newTagNumber=$(( 10#$lastTagNumber + 1 ))
110111
newTag="v$(printf "%04d" $newTagNumber)"
111112
git tag $newTag
112113

0 commit comments

Comments
 (0)