diff --git a/.github/workflows/publish-chart.yml b/.github/workflows/publish-chart.yml index 52ed04b60..51e77cf31 100644 --- a/.github/workflows/publish-chart.yml +++ b/.github/workflows/publish-chart.yml @@ -26,15 +26,14 @@ jobs: - name: Update Chart Version in YAML Files id: process-chart run: | - VERSION_WITH_SHA_SHORT="0.0.0-$(git rev-parse --short HEAD)" - CHART_VERSION="0.0.0-${SHA_SHORT}" + CHART_VERSION="0.0.0-$(git rev-parse --short HEAD)" HELM_FOLDER=$(echo "${{ github.workspace }}/helm") CHART_CURRENT_VERSION=$(sed -nE 's/^version\s*:\s*([^\s\/]*).*/\1/p' ${HELM_FOLDER}/botkube/Chart.yaml) CHART_DEV_VERSION="v9.99.9-dev" find ${HELM_FOLDER} -name "*.yaml" -exec sed -i "s/${CHART_CURRENT_VERSION}/${CHART_VERSION}/g" {} + find ${HELM_FOLDER} -name "*.yaml" -exec sed -i "s/${CHART_DEV_VERSION}/${CHART_VERSION}/g" {} + - echo "chart_version=$(echo $VERSION_WITH_SHA_SHORT)" >> $GITHUB_OUTPUT + echo "chart_version=$(echo $CHART_VERSION)" >> $GITHUB_OUTPUT - name: Set up chart-testing uses: helm/chart-testing-action@v2.2.1