From 78c15805f4e304b38487030d6d7abd12c50f5a82 Mon Sep 17 00:00:00 2001 From: max furman Date: Thu, 15 Apr 2021 15:16:32 -0700 Subject: [PATCH] VERSION from ENV should always take precedence over CI tags --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 396d0a5f..1a3e7023 100644 --- a/Makefile +++ b/Makefile @@ -38,7 +38,7 @@ bootstra%: # If TRAVIS_TAG is set then we know this ref has been tagged. ifdef TRAVIS_TAG -VERSION := $(TRAVIS_TAG) +VERSION ?= $(TRAVIS_TAG) NOT_RC := $(shell echo $(VERSION) | grep -v -e -rc) ifeq ($(NOT_RC),) PUSHTYPE := release-candidate @@ -47,7 +47,7 @@ PUSHTYPE := release endif # GITHUB Actions else ifdef GITHUB_REF -VERSION := $(shell echo $(GITHUB_REF) | sed 's/^refs\/tags\///') +VERSION ?= $(shell echo $(GITHUB_REF) | sed 's/^refs\/tags\///') NOT_RC := $(shell echo $(VERSION) | grep -v -e -rc) ifeq ($(NOT_RC),) PUSHTYPE := release-candidate