We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ee8970 commit ccc19edCopy full SHA for ccc19ed
Makefile
@@ -79,12 +79,12 @@ endif
79
STORED_VERSION_FILE := VERSION
80
HUGO_VERSION ?= 0.111.3
81
82
-ifneq ($(DRONE_TAG),)
83
- VERSION ?= $(subst v,,$(DRONE_TAG))
84
- GITEA_VERSION ?= $(VERSION)
+ifneq ($(GITHUB_REF_TYPE),branch)
+ VERSION ?= $(subst v,,$(GITHUB_REF_NAME))
+ GITEA_VERSION ?= $(GITHUB_REF_NAME)
85
else
86
- ifneq ($(DRONE_BRANCH),)
87
- VERSION ?= $(subst release/v,,$(DRONE_BRANCH))
+ ifneq ($(GITHUB_REF_NAME),)
+ VERSION ?= $(subst release/v,,$(GITHUB_REF_NAME))
88
89
VERSION ?= main
90
endif
0 commit comments