Skip to content

Commit a1bcdc7

Browse files
committed
Update release script to exactly match the target tag
Signed-off-by: Benjamin Wang <[email protected]>
1 parent 7a7a77c commit a1bcdc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ main() {
184184
fi
185185

186186
# Tag release.
187-
if [ "$(git tag --list | grep -c "${RELEASE_VERSION}")" -gt 0 ]; then
187+
if git tag --list | grep --quiet "^${RELEASE_VERSION}$"; then
188188
log_callout "Skipping tag step. git tag ${RELEASE_VERSION} already exists."
189189
else
190190
log_callout "Tagging release..."

0 commit comments

Comments
 (0)