From 518288691d99da594a82d9a0d63b6a35e5784c12 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 9 Jan 2024 10:48:01 +0100 Subject: [PATCH] fix(ci): fix the helm publish step (#2593) fixes https://github.com/casdoor/casdoor-helm/issues/3 --- .github/workflows/build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e65dba0c..5f9933a9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -221,7 +221,7 @@ jobs: sed -i "s/appVersion: .*/appVersion: ${{steps.get-current-tag.outputs.tag }}/g" ./charts/casdoor/Chart.yaml # increase the patch version of the chart - currentChartVersion=$(cat ./charts/casdoor/Chart.yaml | grep version | awk '{print $2}') + currentChartVersion=$(cat ./charts/casdoor/Chart.yaml | grep ^version | awk '{print $2}') newChartVersion=$(echo $currentChartVersion | awk -F. -v OFS=. '{$NF++;print}') sed -i "s/version: .*/version: $newChartVersion/g" ./charts/casdoor/Chart.yaml @@ -229,5 +229,5 @@ jobs: git config --global user.name "casbin-bot" git config --global user.email "casbin-bot@github.com" git add ./charts/casdoor/Chart.yaml - git commit -m "chor(helm): bump helm charts appVersion to ${{steps.get-current-tag.outputs.tag }}" + git commit -m "chore(helm): bump helm charts appVersion to ${{steps.get-current-tag.outputs.tag }}" git push origin HEAD:master