From fb72067f51c8e1206a0fe2326ab081c1b76e704d Mon Sep 17 00:00:00 2001 From: Darrow Hartman Date: Sat, 26 Oct 2024 12:53:30 -0700 Subject: [PATCH] Fixed git lint failure when no error occurs --- .github/workflows/c_lint.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/c_lint.yaml b/.github/workflows/c_lint.yaml index 80e015e..33c0d60 100644 --- a/.github/workflows/c_lint.yaml +++ b/.github/workflows/c_lint.yaml @@ -18,10 +18,7 @@ jobs: format-review: true passive-reviews: true - name: Fail if there are linter errors - if: ${{steps.linter.outputs.clang-format-checks-failed}} + if: ${{steps.linter.outputs.clang-format-checks-failed > 0}} run: | echo "Linter errors occurred, failing the job." - for out in ${{steps.linter.outputs.*}}; do - echo "$out" - done exit 1 # This will cause the step to fail