From e78dd7e5b56fd79273969ea825c3c3118a541268 Mon Sep 17 00:00:00 2001 From: Jijin Puthuvakkattil <95418857+jijinp@users.noreply.github.com> Date: Tue, 15 Oct 2024 15:00:34 +0200 Subject: [PATCH] fix: update helm app version in the Chart.yaml (#21) The helm chart and appVersion needs to be updated before packaging. --- .github/workflows/build-deploy.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index 249979a..9d5d9ff 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -99,6 +99,14 @@ jobs: if: steps.semantic.outputs.new_release_published == 'true' run: IMG=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.semantic.outputs.new_release_version }} make helm + - name: Update both 'version' and 'appVersion' in Chart.yaml + if: steps.semantic.outputs.new_release_published == 'true' + uses: mikefarah/yq@master + with: + expression: '.version = "${{ steps.semantic.outputs.new_release_version }}", .appVersion = "${{ steps.semantic.outputs.new_release_version }}"' + inplace: true + files: ${{ github.repository }}/helm-chart/gcp-config-connector-tagging-operator/Chart.yaml + - name: Chart | Push if: steps.semantic.outputs.new_release_published == 'true' uses: appany/helm-oci-chart-releaser@v0.3.0