diff options
author | John Olheiser <john.olheiser@gmail.com> | 2023-06-23 02:52:03 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-23 09:52:03 +0200 |
commit | ec539b7a77e854d44e8f33220062a0b0ae0fb789 (patch) | |
tree | 64dde486f4ba6d356236037a01c79f37fdd90b5a /Makefile | |
parent | 6fbdacb5242009af9849902c959f1f79b81110f0 (diff) | |
download | gitea-ec539b7a77e854d44e8f33220062a0b0ae0fb789.tar.gz gitea-ec539b7a77e854d44e8f33220062a0b0ae0fb789.zip |
Gitea version in Makefile (#25456) (#25457)
Backport-ish of #25456
Signed-off-by: jolheiser <john.olheiser@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -85,12 +85,12 @@ GITHUB_REF_NAME ?= $(shell git rev-parse --abbrev-ref HEAD) # backwards compatible to build with Drone ifneq ($(DRONE_TAG),) GITHUB_REF_TYPE := tag - GITHUB_REF_NAME := DRONE_TAG + GITHUB_REF_NAME := $(DRONE_TAG) endif ifneq ($(GITHUB_REF_TYPE),branch) VERSION ?= $(subst v,,$(GITHUB_REF_NAME)) - GITEA_VERSION ?= $(GITHUB_REF_NAME) + GITEA_VERSION ?= $(VERSION) else ifneq ($(GITHUB_REF_NAME),) VERSION ?= $(subst release/v,,$(GITHUB_REF_NAME)) |