Skip to content

Merge pull request #594 from linki/dependabot/go_modules/k8s.io/clien… #150

Merge pull request #594 from linki/dependabot/go_modules/k8s.io/clien…

Merge pull request #594 from linki/dependabot/go_modules/k8s.io/clien… #150

Workflow file for this run

---
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