Skip to content

Commit 26eccf9

Browse files
committed
Exit early if git describe --exact-match succeeds
1 parent f2c51e8 commit 26eccf9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ uninstall:
3939

4040
.PHONY: release
4141
release:
42-
git describe --exact-match >/dev/null 2>&1 || git tag -s $(shell date +%Y%m%d)
42+
git describe --exact-match >/dev/null 2>&1 && { echo "Last commit is already tagged" >&2; exit 1; }
43+
git tag -s $(shell date +%Y%m%d)
4344
git push --tags
4445
gh release create --generate-notes ${TAG}
4546

0 commit comments

Comments
 (0)