From 67bba5efd64071dee421320443ebe30248852d80 Mon Sep 17 00:00:00 2001 From: anton Date: Tue, 2 Apr 2024 20:52:13 +0200 Subject: [PATCH] Fixed versioning for snapshot release type --- .github/workflows/package_and_push_helm_chart.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/package_and_push_helm_chart.yaml b/.github/workflows/package_and_push_helm_chart.yaml index 28aefd860..870a7e5b8 100644 --- a/.github/workflows/package_and_push_helm_chart.yaml +++ b/.github/workflows/package_and_push_helm_chart.yaml @@ -5,6 +5,7 @@ on: branches: - dev - release + - devops/FAIRSPC-23_deployment workflow_dispatch: inputs: name: @@ -37,7 +38,7 @@ jobs: - name: Prepare version run: | VERSION=$(cat ./VERSION) - if [[ ${{ github.event.inputs.environment }} = "SNAPSHOT" ]] || [[ $BRANCH = "dev" ]]; then + if [[ ${{ github.event.inputs.release_type }} = "SNAPSHOT" ]] || [[ $BRANCH = "dev" ]]; then VERSION=$VERSION-SNAPSHOT fi echo "VERSION=$VERSION" >> $GITHUB_ENV