Merge pull request #602 from johnhowlett/Log-output-error--json--erro… #157
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: helm | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
changes: | |
runs-on: ubuntu-latest | |
outputs: | |
chart: ${{ steps.filter.outputs.chart }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: dorny/paths-filter@v3 | |
id: filter | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
filters: | | |
chart: | |
- 'chart/chaoskube/Chart.yaml' | |
- 'chart/chaoskube/**/*' | |
chart: | |
name: release chart | |
runs-on: ubuntu-latest | |
needs: | |
- changes | |
if: | | |
needs.changes.outputs.chart == 'true' | |
steps: | |
- name: Checkout master | |
uses: actions/checkout@v4 | |
with: | |
# Fetch entire history. Required for chart-releaser; see https://github.com/helm/chart-releaser-action/issues/13#issuecomment-602063896 | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: Run chart-releaser | |
uses: helm/[email protected] | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
CR_RELEASE_NAME_TEMPLATE: "helm-chart-{{ .Version }}" | |
with: | |
charts_dir: chart |