diff options
author | techknowlogick <techknowlogick@gitea.io> | 2023-06-17 23:27:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-17 23:27:04 -0400 |
commit | 7e06e6a042008209c258ed6d00764b54ea0ad774 (patch) | |
tree | 33897f0f5dc40e92a545ba4a14c0269d315a2675 /Makefile | |
parent | e5629d9701752e8cc883461b5614e752cd957509 (diff) | |
download | gitea-7e06e6a042008209c258ed6d00764b54ea0ad774.tar.gz gitea-7e06e6a042008209c258ed6d00764b54ea0ad774.zip |
use Actions environment variables in Makefile (#25319) (#25318)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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 |