Skip to content

Commit 5483e33

Browse files
committed
Update Makefile
1 parent 8cc9a98 commit 5483e33

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ endif
1717
.RECIPEPREFIX = >
1818
TAG :=
1919

20-
.PHONY: help test unit int release int_single lint verify
20+
.PHONY: help test unit int covtest covunit covint release int_single lint verify
2121

2222
help: ## Display this help section
2323
> @awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z0-9_-]+:.*?## / {printf "\033[36m%-38s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
@@ -58,8 +58,8 @@ covint: ## Run integration tests with coverage
5858
> go tool cover -func coverage/profile
5959

6060
release: ## Tag and push a release
61-
> @if [ -z "$(TAG)" ]; then \
62-
> echo "Error: TAG is not set"; \
61+
> @if [[ -z "$(INPUT)" || "$(INPUT)" == v* ]]; then \
62+
> echo "Error: TAG has to be set, without the v prefix"; \
6363
> exit 1; \
6464
> fi
65-
> git tag -a v$(TAG) -m "Release v$(TAG)"; git push origin v$(TAG)
65+
> echo git tag -a v$(INPUT) -m "Release v$(INPUT)"; git push origin v$(INPUT)

0 commit comments

Comments
 (0)