Skip to content

Commit 78db552

Browse files
rootclaude
andcommitted
fix: helm lint workflow failing on non-chart directories
- Update Helm lint workflow to skip non-chart directories (assets/, shared-values/) - Add proper Chart.yaml existence check before linting - Fix workflow that was failing due to attempting to lint directories without Chart.yaml The workflow now properly: - Skips helm/assets/ (contains logo and docs) - Skips helm/shared-values/ (contains shared YAML configs, not charts) - Only lints actual Helm charts with Chart.yaml files All charts now pass linting successfully. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7ae7a81 commit 78db552

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/helm.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,17 @@ jobs:
2525
- name: Lint all Helm charts in ./helm/
2626
run: |
2727
for chart in helm/*/; do
28-
echo "Linting chart: $chart"
29-
helm lint "$chart" || exit 1
28+
# Skip directories that aren't Helm charts
29+
if [[ "$chart" == "helm/assets/" || "$chart" == "helm/shared-values/" ]]; then
30+
echo "Skipping non-chart directory: $chart"
31+
continue
32+
fi
33+
34+
# Only lint if Chart.yaml exists
35+
if [[ -f "$chart/Chart.yaml" ]]; then
36+
echo "Linting chart: $chart"
37+
helm lint "$chart" || exit 1
38+
else
39+
echo "Skipping directory without Chart.yaml: $chart"
40+
fi
3041
done

0 commit comments

Comments
 (0)