From 3a4984b5837e675f02649bc5ef25468c099b18a1 Mon Sep 17 00:00:00 2001 From: Om Mishra <32200996+mishraomp@users.noreply.github.com> Date: Thu, 23 May 2024 14:26:46 -0700 Subject: [PATCH] fix(CI): release of helm charts. (#74) --- .github/workflows/merge.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/merge.yml b/.github/workflows/merge.yml index 7969481..c55b829 100644 --- a/.github/workflows/merge.yml +++ b/.github/workflows/merge.yml @@ -32,6 +32,7 @@ jobs: needs: [vars] outputs: tag: ${{ steps.changelog.outputs.tag }} + version: ${{ steps.changelog.outputs.version }} steps: - uses: actions/checkout@v4 with: @@ -80,6 +81,7 @@ jobs: helm-release: runs-on: ubuntu-22.04 needs: [semantic-release] + if: ${{ needs.semantic-release.outputs.version != '' }} steps: - name: Checkout uses: actions/checkout@v4 @@ -92,7 +94,7 @@ jobs: - name: package helm chart shell: bash run: | - helm package -u --destination=.cr-release-packages --app-version="${{ needs.semantic-release.outputs.tag }}" --version=${{ needs.semantic-release.outputs.tag }} charts/${{ github.event.repository.name }} + helm package -u --destination=.cr-release-packages --app-version="${{ needs.semantic-release.outputs.tag }}" --version=${{ needs.semantic-release.outputs.version }} charts/${{ github.event.repository.name }} - name: Run chart-releaser uses: helm/chart-releaser-action@v1.6.0 env: