]> source.dussan.org Git - gitea.git/commitdiff
use Actions environment variables in Makefile (#25319) (#25318)
authortechknowlogick <techknowlogick@gitea.io>
Sun, 18 Jun 2023 03:27:04 +0000 (23:27 -0400)
committerGitHub <noreply@github.com>
Sun, 18 Jun 2023 03:27:04 +0000 (23:27 -0400)
Makefile

index b3111d65f1832f433dc033e18edccd4c89dd0a19..3a1887fba1389ea07a83dd11f627a0b0f343e785 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -79,12 +79,12 @@ endif
 STORED_VERSION_FILE := VERSION
 HUGO_VERSION ?= 0.111.3
 
-ifneq ($(DRONE_TAG),)
-       VERSION ?= $(subst v,,$(DRONE_TAG))
-       GITEA_VERSION ?= $(VERSION)
+ifneq ($(GITHUB_REF_TYPE),branch)
+       VERSION ?= $(subst v,,$(GITHUB_REF_NAME))
+       GITEA_VERSION ?= $(GITHUB_REF_NAME)
 else
-       ifneq ($(DRONE_BRANCH),)
-               VERSION ?= $(subst release/v,,$(DRONE_BRANCH))
+       ifneq ($(GITHUB_REF_NAME),)
+               VERSION ?= $(subst release/v,,$(GITHUB_REF_NAME))
        else
                VERSION ?= main
        endif