From 70ba24385f8e2b213aa81149c8d630441a46a296 Mon Sep 17 00:00:00 2001 From: Dzmitry2D <120099104+dzmitrydd@users.noreply.github.com> Date: Wed, 23 Oct 2024 17:09:57 +0300 Subject: [PATCH] Fix/3251 gitversion config (#2579) * 3251 Adding workaround configuration for Gitversion * 3251 Adding workaround configuration for Gitversion --- .github/workflows/base.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/base.yml b/.github/workflows/base.yml index feeced1d82..2a40432b74 100644 --- a/.github/workflows/base.yml +++ b/.github/workflows/base.yml @@ -144,11 +144,14 @@ jobs: run: | cd ./helmchart # workaround to separate versioning modes for prod and non-prod - if [[ ${{ github.ref_name}} == "main" ]]; then - export helm_tag="$GITVERSION_SEMVER" - else - export helm_tag="$GITVERSION_MAJOR.$GITVERSION_MINOR.$GITVERSION_COMMITSSINCEVERSIONSOURCE" - fi + # temporary solution until we have a single versioning mode + # if [[ ${{ github.ref_name}} == "main" ]]; then + # export helm_tag="$GITVERSION_SEMVER" + # else + # export helm_tag="$GITVERSION_MAJOR.$GITVERSION_MINOR.$GITVERSION_COMMITSSINCEVERSIONSOURCE" + # fi + + export helm_tag="$GITVERSION_MAJOR.$GITVERSION_MINOR.$GITVERSION_COMMITSSINCEVERSIONSOURCE" echo "[INFO] ${helm_tag}..." echo "[INFO] Replace Helm Chart package version..."