diff --git a/.github/workflows/helm-release.yaml b/.github/workflows/helm-release.yaml index 01ee13b..b65a7f0 100644 --- a/.github/workflows/helm-release.yaml +++ b/.github/workflows/helm-release.yaml @@ -1,6 +1,12 @@ name: Release Charts -on: workflow_dispatch +on: + push: + branches: + - main + paths: + - 'charts/**' + - '!**.md' jobs: release: diff --git a/.github/workflows/helm.yaml b/.github/workflows/helm.yaml index f51ca6d..e4581ae 100644 --- a/.github/workflows/helm.yaml +++ b/.github/workflows/helm.yaml @@ -4,6 +4,7 @@ on: pull_request: paths: - "charts/**" + - '!**.md' jobs: lint-test: diff --git a/charts/accurate/README.md b/charts/accurate/README.md index f73602f..bd40f35 100644 --- a/charts/accurate/README.md +++ b/charts/accurate/README.md @@ -90,8 +90,4 @@ This will prevent the Accurate version from going up just by modifying the Helm You must change the version of `Chart.yaml` when making changes to the Helm Chart. CI fails with lint error when creating a Pull Request without changing the version of `Chart.yaml`. -When you release the Helm Chart, manually run the GitHub Actions workflow for the release. - -https://github.com/cybozu-go/accurate/actions/workflows/helm-release.yaml - -When you run workflow, [helm/chart-releaser-action](https://github.com/helm/chart-releaser-action) will automatically create a GitHub Release. +When a pull request with Chart changes is merged into the main branch, [helm/chart-releaser-action](https://github.com/helm/chart-releaser-action) will automatically create a GitHub release.