Skip to content

Commit

Permalink
Fix main chart version (#1285)
Browse files Browse the repository at this point in the history
  • Loading branch information
huseyinbabal authored Oct 9, 2023
1 parent ec12320 commit 72a557f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/publish-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 72a557f

Please sign in to comment.