Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
luttje authored Feb 18, 2025
1 parent c7de2f6 commit 55a6152
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ jobs:
# Increment the tag, based on the previous tag (v0001, v0002, ...)
lastTag=$(git tag -l --sort=-v:refname | grep -E "^v[0-9]{4}$" | head -n 1)
lastTagNumber=${lastTag:1}
newTagNumber=$((lastTagNumber + 1))
# Force base 10 for numbers, even if they lead with zero (which would normally be considered octal)
newTagNumber=$(( 10#$lastTagNumber + 1 ))
newTag="v$(printf "%04d" $newTagNumber)"
git tag $newTag
Expand Down

0 comments on commit 55a6152

Please sign in to comment.