From 7e06e6a042008209c258ed6d00764b54ea0ad774 Mon Sep 17 00:00:00 2001 From: techknowlogick Date: Sat, 17 Jun 2023 23:27:04 -0400 Subject: [PATCH] use Actions environment variables in Makefile (#25319) (#25318) --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index b3111d65f1..3a1887fba1 100644 --- 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 -- 2.39.5