From 83847f825bdcf8d011b67a065b48b2369fd64ca4 Mon Sep 17 00:00:00 2001 From: Nicolas Takashi Date: Wed, 23 Aug 2023 15:00:35 +0100 Subject: [PATCH] [CHORE] changing version helm (#64) Signed-off-by: Nicolas Takashi --- .github/workflows/helm-update.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/helm-update.yaml b/.github/workflows/helm-update.yaml index 22cd8178..98717ad7 100644 --- a/.github/workflows/helm-update.yaml +++ b/.github/workflows/helm-update.yaml @@ -20,10 +20,11 @@ jobs: - name: Update Chart Version run: | TAG="${{ github.ref_name }}" + TAG_VERSION=$(echo $TAG | sed 's/v//') CURRENT_VERSION=$(grep "version:" charts/coralogix-operator/Chart.yaml | awk '{print $2}') NEW_VERSION=$(echo $CURRENT_VERSION | awk -F. -v OFS=. '{$3+=1}1') - sed -i "s/appVersion:.*/appVersion: $TAG/" charts/coralogix-operator/Chart.yaml + sed -i "s/appVersion:.*/appVersion: $TAG_VERSION/" charts/coralogix-operator/Chart.yaml sed -i "s/version:.*/version: $NEW_VERSION/" charts/coralogix-operator/Chart.yaml - name: Create Pull Request