Skip to content

Commit ec539b7

Browse files
authored
Gitea version in Makefile (#25456) (#25457)
Backport-ish of #25456 Signed-off-by: jolheiser <john.olheiser@gmail.com>
1 parent 6fbdacb commit ec539b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,12 @@ GITHUB_REF_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
8585
# backwards compatible to build with Drone
8686
ifneq ($(DRONE_TAG),)
8787
GITHUB_REF_TYPE := tag
88-
GITHUB_REF_NAME := DRONE_TAG
88+
GITHUB_REF_NAME := $(DRONE_TAG)
8989
endif
9090

9191
ifneq ($(GITHUB_REF_TYPE),branch)
9292
VERSION ?= $(subst v,,$(GITHUB_REF_NAME))
93-
GITEA_VERSION ?= $(GITHUB_REF_NAME)
93+
GITEA_VERSION ?= $(VERSION)
9494
else
9595
ifneq ($(GITHUB_REF_NAME),)
9696
VERSION ?= $(subst release/v,,$(GITHUB_REF_NAME))

0 commit comments

Comments
 (0)