Skip to content

Commit

Permalink
chore: Update release script
Browse files Browse the repository at this point in the history
  • Loading branch information
lyxell committed Jul 8, 2021
1 parent 12b02dc commit e4f1678
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/create_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ current_version=$(git describe --tags --abbrev=0)
[[ $current_version =~ $pattern ]]

if [[ "$1" = "major" ]]; then
next_version="v$((BASH_REMATCH[1]+1)).${BASH_REMATCH[2]}.${BASH_REMATCH[3]}"
next_version="v$((BASH_REMATCH[1]+1)).0.0"
elif [[ "$1" = "minor" ]]; then
next_version="v${BASH_REMATCH[1]}.$((BASH_REMATCH[2]+1)).${BASH_REMATCH[3]}"
next_version="v${BASH_REMATCH[1]}.$((BASH_REMATCH[2]+1)).0"
elif [[ "$1" = "patch" ]]; then
next_version="v${BASH_REMATCH[1]}.${BASH_REMATCH[2]}.$((BASH_REMATCH[3]+1))"
fi
Expand Down

0 comments on commit e4f1678

Please sign in to comment.