Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion actions/helm-lint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ It detects which charts have changed and only tests those.

| Name | Description | Required |
|--------------|--------------------------------------------------------------|----------|
| `chartDirs` | Comma-separated list of root directories with Helm charts. | ✅ Yes |
| `chartDirs` | Comma-separated list of root directories with Helm charts. | No |

## 📤 Outputs

Expand Down
8 changes: 4 additions & 4 deletions actions/helm-lint/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: "An action to lint and test Helm charts using chart-testing and kin
inputs:
chartDirs:
description: "Comma-separated list of root directories containing Helm charts."
required: true
required: false
default: "."
outputs:
changed:
Expand Down Expand Up @@ -34,15 +34,15 @@ runs:
- name: Run chart-testing (list-changed)
id: list_changed
run: |
changed=$(ct list-changed --chart-dirs "${{ inputs.chartDirs }}" --target-branch "${{ github.base_ref || github.event.repository.default_branch }}")
changed=$(ct list-changed --chart-dirs "${{ inputs.chartDirs }}" --target-branch "${{ github.event.repository.default_branch }}")
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
shell: bash

- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --chart-dirs "${{ inputs.chartDirs }}" --target-branch "${{ github.base_ref || github.event.repository.default_branch }}"
run: ct lint --chart-dirs "${{ inputs.chartDirs }}" --target-branch "${{ github.event.repository.default_branch }}"
shell: bash

- name: Create kind cluster
Expand All @@ -51,5 +51,5 @@ runs:

- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
run: ct install --chart-dirs "${{ inputs.chartDirs }}" --target-branch "${{ github.base_ref || github.event.repository.default_branch }}"
run: ct install --chart-dirs "${{ inputs.chartDirs }}" --target-branch "${{ github.event.repository.default_branch }}"
shell: bash
Loading