fail on error (#20)

ci-via-github-actions
This commit is contained in:
Casey Lee
2019-01-23 11:51:22 -08:00
committed by GitHub
parent f98caa2656
commit 320e9b6057
1274 changed files with 398630 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ endif
IS_SNAPSHOT = $(if $(findstring -, $(VERSION)),true,false)
TAG_VERSION = v$(VERSION)
ACT ?= go run main.go
ACT ?= go run -mod=vendor main.go
default: check
@@ -35,7 +35,7 @@ installer:
@GO111MODULE=off go get github.com/goreleaser/godownloader
godownloader -r nektos/act -o install.sh
promote:
promote: vendor
@echo "VERSION:$(VERSION) IS_SNAPSHOT:$(IS_SNAPSHOT) LATEST_VERSION:$(LATEST_VERSION)"
ifeq (false,$(IS_SNAPSHOT))
@echo "Unable to promote a non-snapshot"
@@ -47,4 +47,9 @@ ifneq ($(shell git status -s),)
endif
$(eval NEW_VERSION := $(word 1,$(subst -, , $(TAG_VERSION))))
git tag -a -m "releasing $(NEW_VERSION)" $(NEW_VERSION)
git push origin $(NEW_VERSION)
git push origin $(NEW_VERSION)
vendor:
go run main.go -ra vendor
.PHONY: vendor