From 72a5d5c2c7f8edccc22165f39a965e16cec1af88 Mon Sep 17 00:00:00 2001 From: Eng1n33r Date: Mon, 20 Jun 2022 15:03:06 +0300 Subject: [PATCH] Revert "remove unused env var in git branch name" This reverts commit 9d46f62be1ffa17bc8d13b68b8708ccfec17e82e. --- make/git.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/make/git.mk b/make/git.mk index ea3d16f44..8c0cd73ad 100644 --- a/make/git.mk +++ b/make/git.mk @@ -1,5 +1,5 @@ GIT_COMMIT := $(shell git rev-parse --short HEAD || echo 'unknown') -GIT_BRANCH := $(shell git rev-parse --abbrev-ref HEAD || echo 'dev-cfw') +GIT_BRANCH := $(shell echo $${WORKFLOW_BRANCH_OR_TAG-$$(git rev-parse --abbrev-ref HEAD || echo 'unknown')}) GIT_BRANCH_NUM := $(shell git rev-list --count HEAD || echo 'nan') BUILD_DATE := $(shell date '+%d-%m-%Y' || echo 'unknown') BUILD_TIME := $(shell date '+%H:%M:%S' || echo 'unknown')