mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-22 01:44:24 +01:00
Backport-ish of #25456 Signed-off-by: jolheiser <john.olheiser@gmail.com>
This commit is contained in:
parent
6fbdacb524
commit
ec539b7a77
4
Makefile
4
Makefile
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue