Validates a helm chart using helm lint, and helm template commands. Optionally validates that the only branch merged into main is alpha
- uses: catalystsquad/action-validate-helm-chart@undefined
with:
# When true, the action will fail if the pull request is into the `main` branch
# and the source branch is not `alpha`
# Default: true
validate-main-alpha-merge: ""
# Path to the helm chart. Defaults to "chart"
# Default: chart
chart-path: ""
# Args to pass to the lint command. i.e. `--set x=y`
# Default:
lint-args: ""
# Args to pass to the template command. i.e. `--set x=y`
# Default:
template-args: ""
Input | Description | Default | Required |
---|---|---|---|
validate-main-alpha-merge |
When true, the action will fail if the pull request is into the main branch and the source branch is not alpha |
true |
false |
chart-path |
Path to the helm chart. Defaults to "chart" | chart |
false |
lint-args |
Args to pass to the lint command. i.e. --set x=y |
false | |
template-args |
Args to pass to the template command. i.e. --set x=y |
false |
Output | Description | Default | Required |
---|---|---|---|
random-number |
Random number |
name: Validate Helm Chart PR
on:
pull_request:
branches:
- main
- alpha
paths:
- "chart/**"
jobs:
validate-chart:
if: ${{ !startsWith( github.head_ref, 'automated-code-release' ) }}
name: Lint Chart
runs-on: ubuntu-latest
steps:
- uses: crazy-max/ghaction-dump-context@v1
- uses: catalystsquad/action-validate-helm-chart@v1