fix check-existing-release
This commit is contained in:
parent
72c69fce9d
commit
4ef35fa1bc
4
Makefile
4
Makefile
|
@ -185,10 +185,10 @@ clean-release:
|
||||||
rm -rf $(RELEASE_DIR)
|
rm -rf $(RELEASE_DIR)
|
||||||
|
|
||||||
check-existing-release:
|
check-existing-release:
|
||||||
@git ls-remote --exit-code origin "v$(RELEASE_TAG)" >/dev/null && \
|
@git ls-remote --exit-code origin "v$(RELEASE_TAG)" >/dev/null || exit 0; \
|
||||||
echo "$(YELLOW)Release tag already exists: v$(RELEASE_TAG)$(RESET)"; \
|
echo "$(YELLOW)Release tag already exists: v$(RELEASE_TAG)$(RESET)"; \
|
||||||
echo "Remove the tag/release if you want to re-create it."; \
|
echo "Remove the tag/release if you want to re-create it."; \
|
||||||
exit 1
|
exit 1;
|
||||||
|
|
||||||
release: check-existing-release
|
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; \
|
@read -p "Are you sure you want to create a new GitHub $(RELEASE_TYPE) against $(RELEASE_BRANCH) branch? (y/n): " REPLY; \
|
||||||
|
|
Loading…
Reference in New Issue