diff options
author | Casey Lee <cplee@nektos.com> | 2019-01-23 20:51:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-23 20:51:22 +0100 |
commit | 320e9b60576739f791e301b47517d5b064f0b3d5 (patch) | |
tree | ca5198748ed53fcb0691bf761a4a1758aad43165 /Makefile | |
parent | bump goreleaser version (diff) | |
download | forgejo-act-320e9b60576739f791e301b47517d5b064f0b3d5.tar.xz forgejo-act-320e9b60576739f791e301b47517d5b064f0b3d5.zip |
fail on error (#20)
ci-via-github-actions
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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)
\ No newline at end of file + git push origin $(NEW_VERSION) + +vendor: + go run main.go -ra vendor + +.PHONY: vendor
\ No newline at end of file |