fix check-existing-release

This commit is contained in:
Adam Babik 2019-09-03 08:17:52 +02:00
parent 72c69fce9d
commit 4ef35fa1bc
No known key found for this signature in database
GPG Key ID: ED02515A1FC0D1B4
1 changed files with 4 additions and 4 deletions

View File

@ -185,10 +185,10 @@ clean-release:
rm -rf $(RELEASE_DIR)
check-existing-release:
@git ls-remote --exit-code origin "v$(RELEASE_TAG)" >/dev/null && \
echo "$(YELLOW)Release tag already exists: v$(RELEASE_TAG)$(RESET)"; \
echo "Remove the tag/release if you want to re-create it."; \
exit 1
@git ls-remote --exit-code origin "v$(RELEASE_TAG)" >/dev/null || exit 0; \
echo "$(YELLOW)Release tag already exists: v$(RELEASE_TAG)$(RESET)"; \
echo "Remove the tag/release if you want to re-create it."; \
exit 1;
release: check-existing-release
@read -p "Are you sure you want to create a new GitHub $(RELEASE_TYPE) against $(RELEASE_BRANCH) branch? (y/n): " REPLY; \