From c2ca9bffde303406b914691a7c0a97fbe32ca385 Mon Sep 17 00:00:00 2001 From: Nathan DuPont Date: Thu, 28 Mar 2024 00:50:55 -0700 Subject: [PATCH] test2 --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 396e9b0..69928f4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -31,8 +31,8 @@ jobs: run: | set +x formatted_files=$(find ./config ./src ./tools -newer /tmp/pre_fmt) - num_formatted_files=$(find ./config ./src ./tools -newer /tmp/pre_fmt | wc -l) - echo $num_formatted_files + num_formatted_files=$(echo "$formatted_files" | wc -l) + if [ "$num_formatted_files" -gt "0" ]; then echo "❌🔥 Bad code detected! The following files would be reformatted:" echo "$formatted_files"