diff --git a/actions/helm-lint/README.md b/actions/helm-lint/README.md index cd2f19be..6694c268 100644 --- a/actions/helm-lint/README.md +++ b/actions/helm-lint/README.md @@ -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 diff --git a/actions/helm-lint/action.yaml b/actions/helm-lint/action.yaml index 22dd493e..8ccd458d 100644 --- a/actions/helm-lint/action.yaml +++ b/actions/helm-lint/action.yaml @@ -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: @@ -34,7 +34,7 @@ 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 @@ -42,7 +42,7 @@ runs: - 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 @@ -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