Update the chart version #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release on Chart version bump | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- charts/cloudprofiles/Chart.yaml | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get chart version from Chart.yaml | |
id: get_chart_version | |
uses: mikefarah/yq@master | |
with: | |
cmd: yq '.version' charts/cloudprofiles/Chart.yaml | |
- name: Create GitHub Release for the current version | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: gh release create ${{ steps.get_chart_version.outputs.result }} --generate-notes |