A Github action to diff a Helm chart.
Add the following step to your workflow:
- name: Diff Helm Chartuses: fivekoalas/diff-helm-chart@v1id: diffwith:
targetChartPath: ./target/chartscurrentChartPath: ./current/chartsvaluesPath: ./values.yamlcurrentValuesRepo: fivekoalas/diff-helm-charttargetValuesRepo: fivekoalas/diff-helm-chart # optional, defaults to currentValuesRepocurrentValuesBranch: main # optional, defaults to developtoken: ${{ secrets.GITHUB_TOKEN }} # required PAT for private repos, optional for public repos defaults to GITHUB_TOKENtargetBranchRegex: 'release-.*'# optional, defaults to 'target: (.*)'asMarkdown: true # optional, defaults to true
- name: 'Add PR Comment'uses: mshick/add-pr-comment@v2if: steps.diff.outputs.changed == 'true'with:
message: ${{ steps.diff.outputs.diff }}This code is made available under the MIT license.