From 39b1e052ec22e76ee904ee8fc9991d00cc185299 Mon Sep 17 00:00:00 2001 From: Dimitrios Giannopoulos <dimit.giannopoulos@upnet.gr> Date: Fri, 14 Jun 2024 12:59:12 +0000 Subject: [PATCH] fix: side branch build has branch name --- ci-templates/default.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ci-templates/default.yml b/ci-templates/default.yml index a4cf9f5..bb0d553 100644 --- a/ci-templates/default.yml +++ b/ci-templates/default.yml @@ -6,8 +6,6 @@ stages: - security .default: - variables: - DEFAULT_VERSION: "1.0.0" before_script: - | if [ "$CI_COMMIT_REF_NAME" = "main" ] && [ -n "$CI_COMMIT_TAG" ]; then @@ -15,5 +13,5 @@ stages: elif [ "$CI_COMMIT_REF_NAME" = "develop" ]; then export APP_VERSION="develop" else - export APP_VERSION=$DEFAULT_VERSION + export APP_VERSION=$CI_COMMIT_REF_NAME fi -- GitLab