Skip to content

Commit

Permalink
ci: Fix release script ⚓
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyx committed Apr 22, 2024
1 parent 955df7d commit 0d8d4ea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,12 @@ function commit_version_file() {

function create_tag() {
tag="v$version"
if git tag --list "v*" | grep -q "$tag"; then
if git tag --list "v*" | grep -qE "^$tag$"; then
echo "Git tag '$tag' already exists."
exit 1
fi

if git ls-remote "refs/tags/v*" | grep -q "$tag"; then
if git ls-remote "refs/tags/v*" | grep -qE "^$tag$"; then
echo "Git tag '$tag' already exists."
exit 1
fi
Expand Down

0 comments on commit 0d8d4ea

Please sign in to comment.