Skip to content

Commit

Permalink
fix: update helm app version in the Chart.yaml (#21)
Browse files Browse the repository at this point in the history
The helm chart and appVersion needs to be updated before packaging.
  • Loading branch information
jijinp authored Oct 15, 2024
1 parent 925e247 commit e78dd7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
Expand Down

0 comments on commit e78dd7e

Please sign in to comment.