From 6c1c16c4cfeae761c32317022a6abf81d9d52dad Mon Sep 17 00:00:00 2001 From: jay-bisonai <137759552+jay-bisonai@users.noreply.github.com> Date: Mon, 12 Feb 2024 14:38:50 +0900 Subject: [PATCH] test --- .github/workflows/ci.helm-lint.yaml | 18 +++++++++++++++++- bisontry-health-checker/Chart.yaml | 2 +- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.helm-lint.yaml b/.github/workflows/ci.helm-lint.yaml index f721f63a..2f4e2a64 100644 --- a/.github/workflows/ci.helm-lint.yaml +++ b/.github/workflows/ci.helm-lint.yaml @@ -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 diff --git a/bisontry-health-checker/Chart.yaml b/bisontry-health-checker/Chart.yaml index 1b6751bd..22463ad2 100644 --- a/bisontry-health-checker/Chart.yaml +++ b/bisontry-health-checker/Chart.yaml @@ -1,3 +1,3 @@ -apiVersion: dfdfnljaewnrjls +apiVersion: dfdfnljaew appVersion: v0.1.0.20240131.0543.c3d8172