Skip to content

Commit

Permalink
np: Fix tooling ⚓
Browse files Browse the repository at this point in the history
  • Loading branch information
gabyx committed Jan 3, 2024
1 parent dbe206a commit 61b6134
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail

readarray -t prepareTag < <(git tag --pattern "prepare-*")
readarray -t prepareTag < <(git tag --list "prepare-*")

for tag in "${prepareTag[@]}"; do
echo "Deleting prepare tag '$tag'."
Expand All @@ -11,9 +11,11 @@ done

version="$1"
tag="v$version"
if git tag --pattern "v*" | grep -q "$tag"; then
if git tag "v*" | grep -q "$tag"; then
echo "Git tag '$tag' already exists."
fi

git tag "prepare-$tag"

echo "Pushing tag 'prepare-$tag'."
git push -f origin "prepare-$tag"

0 comments on commit 61b6134

Please sign in to comment.