Skip to content

Commit 7e06e6a

Browse files
use Actions environment variables in Makefile (#25319) (#25318)
1 parent e5629d9 commit 7e06e6a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ endif
7979
STORED_VERSION_FILE := VERSION
8080
HUGO_VERSION ?= 0.111.3
8181

82-
ifneq ($(DRONE_TAG),)
83-
VERSION ?= $(subst v,,$(DRONE_TAG))
84-
GITEA_VERSION ?= $(VERSION)
82+
ifneq ($(GITHUB_REF_TYPE),branch)
83+
VERSION ?= $(subst v,,$(GITHUB_REF_NAME))
84+
GITEA_VERSION ?= $(GITHUB_REF_NAME)
8585
else
86-
ifneq ($(DRONE_BRANCH),)
87-
VERSION ?= $(subst release/v,,$(DRONE_BRANCH))
86+
ifneq ($(GITHUB_REF_NAME),)
87+
VERSION ?= $(subst release/v,,$(GITHUB_REF_NAME))
8888
else
8989
VERSION ?= main
9090
endif

0 commit comments

Comments
 (0)