feat(version): automatically use ci defined branch name
Cadoles/mktools/pipeline/head This commit looks good Details

This commit is contained in:
wpetit 2023-11-16 16:34:56 +01:00
parent 6eeb67261f
commit 021e0d13d8
1 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,5 @@
MKT_PROJECT_VERSION_TIMEZONE ?= Europe/Paris
MKT_PROJECT_VERSION_BRANCH_NAME ?= $(shell git rev-parse --abbrev-ref HEAD)
MKT_PROJECT_VERSION_BRANCH_NAME ?= $(if $(CI), $(BRANCH_NAME), $(shell git rev-parse --abbrev-ref HEAD))
MKT_PROJECT_VERSION_CLEANED_BRANCH_NAME ?= $(shell echo $(MKT_PROJECT_VERSION_BRANCH_NAME) | tr '[:upper:]' '[:lower:]' | sed -e 's/[-_ ]//g')
ifeq ($(MKT_PROJECT_VERSION_CLEANED_BRANCH_NAME),master)