From e52834256e3efae9607d4e21b9a120bcd7e5b429 Mon Sep 17 00:00:00 2001 From: AlxFrst Date: Thu, 18 Apr 2024 12:05:34 +0200 Subject: [PATCH] =?UTF-8?q?Mettre=20=C3=A0=20jour=20le=20workflow=20Kubeli?= =?UTF-8?q?nter=20pour=20=C3=A9chouer=20en=20cas=20de=20lignes=20dans=20le?= =?UTF-8?q?=20rapport=20kube-linter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/kubelinter.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/kubelinter.yml b/.github/workflows/kubelinter.yml index 966ee16..b5c7167 100644 --- a/.github/workflows/kubelinter.yml +++ b/.github/workflows/kubelinter.yml @@ -30,9 +30,9 @@ jobs: name: kube-linter-report path: kube-linter-report.txt - - name: Fail if there are linting errors + - name: Fail if the kube-linter report contains lines run: | - if grep -q "error" kube-linter-report.txt; then - echo "Linting errors found" + if grep -q . kube-linter-report.txt; then + echo "kube-linter found issues in the repository" exit 1 fi \ No newline at end of file