use Actions environment variables in Makefile (#25319) (#25318)

This commit is contained in:
techknowlogick 2023-06-17 23:27:04 -04:00 committed by GitHub
parent e5629d9701
commit 7e06e6a042
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -79,12 +79,12 @@ endif
STORED_VERSION_FILE := VERSION STORED_VERSION_FILE := VERSION
HUGO_VERSION ?= 0.111.3 HUGO_VERSION ?= 0.111.3
ifneq ($(DRONE_TAG),) ifneq ($(GITHUB_REF_TYPE),branch)
VERSION ?= $(subst v,,$(DRONE_TAG)) VERSION ?= $(subst v,,$(GITHUB_REF_NAME))
GITEA_VERSION ?= $(VERSION) GITEA_VERSION ?= $(GITHUB_REF_NAME)
else else
ifneq ($(DRONE_BRANCH),) ifneq ($(GITHUB_REF_NAME),)
VERSION ?= $(subst release/v,,$(DRONE_BRANCH)) VERSION ?= $(subst release/v,,$(GITHUB_REF_NAME))
else else
VERSION ?= main VERSION ?= main
endif endif