From 6ed5fb34dc6be4dcabc052ba036d751040fa1b7b Mon Sep 17 00:00:00 2001 From: jangrui Date: Mon, 18 May 2026 11:05:21 +0800 Subject: [PATCH] =?UTF-8?q?commit=20-m=20"fix(ci):=20=E4=BF=AE=E5=A4=8D=20?= =?UTF-8?q?helm=20lint=20=E7=BC=BA=E5=B0=91=E8=B7=AF=E5=BE=84=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E5=92=8C=20grep=20-c=20=E5=9C=A8=20bash=20-e=20?= =?UTF-8?q?=E4=B8=8B=E7=9A=84=E9=80=80=E5=87=BA=E7=A0=81=E9=97=AE=E9=A2=98?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: jangrui --- .github/workflows/pr-helm-chart.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-helm-chart.yml b/.github/workflows/pr-helm-chart.yml index 42e0b2c6..a3e880bf 100644 --- a/.github/workflows/pr-helm-chart.yml +++ b/.github/workflows/pr-helm-chart.yml @@ -37,7 +37,7 @@ jobs: version: latest - name: Lint chart - run: helm lint + run: helm lint . - name: Validate chart metadata run: | @@ -126,7 +126,7 @@ jobs: - name: Validate no empty resources run: | - RESOURCES=$(helm template test-release . ${{ matrix.scenario.args }} | grep -c '^kind:') + RESOURCES=$(helm template test-release . ${{ matrix.scenario.args }} 2>/dev/null | grep -c '^kind:' || true) echo "Rendered $RESOURCES resources for ${{ matrix.scenario.name }}" if [ "$RESOURCES" -eq 0 ]; then echo "ERROR: No resources rendered for ${{ matrix.scenario.name }}"