From 041f856191d7a943453c1e88cc85e941a552d984 Mon Sep 17 00:00:00 2001 From: Nico Koprowski Date: Wed, 10 Jul 2024 10:04:58 +0800 Subject: [PATCH] ci(Release Chart): fix check for Chart release version --- .github/workflows/helm-chart-release.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/helm-chart-release.yaml b/.github/workflows/helm-chart-release.yaml index b43f96a62..62764e639 100644 --- a/.github/workflows/helm-chart-release.yaml +++ b/.github/workflows/helm-chart-release.yaml @@ -42,7 +42,10 @@ jobs: run: | CHART_VERSION=$(grep 'version:' ./charts/bpdm/Chart.yaml | head -n1 | awk '{ print $2}') SNAPSHOT=$(echo $CHART_VERSION | grep 'SNAPSHOT') - if test -z $SNAPSHOT; then IS_RELEASE=true; else IS_RELEASE=false fi + if [[ -z "$SNAPSHOT" ]]; then + IS_RELEASE=true; else + IS_RELEASE=false + fi echo "isRelease=$IS_RELEASE" >> $GITHUB_OUTPUT - name: Configure Git