Revert "remove unused env var in git branch name"

This reverts commit 9d46f62be1.
This commit is contained in:
Eng1n33r 2022-06-20 15:03:06 +03:00
parent 881b6d2634
commit 72a5d5c2c7

View File

@ -1,5 +1,5 @@
GIT_COMMIT := $(shell git rev-parse --short HEAD || echo 'unknown') 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') GIT_BRANCH_NUM := $(shell git rev-list --count HEAD || echo 'nan')
BUILD_DATE := $(shell date '+%d-%m-%Y' || echo 'unknown') BUILD_DATE := $(shell date '+%d-%m-%Y' || echo 'unknown')
BUILD_TIME := $(shell date '+%H:%M:%S' || echo 'unknown') BUILD_TIME := $(shell date '+%H:%M:%S' || echo 'unknown')