Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
jay-bisonai committed Feb 12, 2024
1 parent e83bf53 commit 6c1c16c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 17 additions & 1 deletion .github/workflows/ci.helm-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,20 @@ jobs:
- name: Run Helm lint
uses: WyriHaximus/github-action-helm3@v3
with:
exec: find . -name 'Chart.yaml' -exec dirname {} \; | xargs -I {} helm lint {} | grep "failed" && exit 1 || exit 0
exec: |
failed_services=""
for file in $(git diff --name-only HEAD~1..HEAD); do
dir=$(dirname $file)
if [ -f "$dir/Chart.yaml" ]; then
if ! helm lint $dir; then
echo "'$(basename $dir)' failed"
failed_services+="'$(basename $dir)', "
fi
fi
done
if [ -n "$failed_services" ]; then
# Remove the trailing comma and space
failed_services=${failed_services%??}
echo "Lint failed services: $failed_services"
fi
2 changes: 1 addition & 1 deletion bisontry-health-checker/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
apiVersion: dfdfnljaewnrjls
apiVersion: dfdfnljaew

appVersion: v0.1.0.20240131.0543.c3d8172

0 comments on commit 6c1c16c

Please sign in to comment.