File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 1717.RECIPEPREFIX = >
1818TAG :=
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
2222help : # # 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
6060release : # # 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 )
You can’t perform that action at this time.
0 commit comments