From 1cb24be73b5561665b5947d5d1e93a3ea994cd43 Mon Sep 17 00:00:00 2001 From: "Jason C. Leach" Date: Fri, 25 Oct 2024 08:44:30 -0700 Subject: [PATCH] fix: pipe logic Signed-off-by: Jason C. Leach --- .github/workflows/actions/early-exit-check/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/actions/early-exit-check/action.yml b/.github/workflows/actions/early-exit-check/action.yml index 617f5e39a..700593398 100644 --- a/.github/workflows/actions/early-exit-check/action.yml +++ b/.github/workflows/actions/early-exit-check/action.yml @@ -26,7 +26,7 @@ runs: echo "Comparing ${parent_ref} with ${child_ref}" diff_output=$(git diff --name-only ${parent_ref}..${child_ref}) - change_count=$(echo "$diff_output" | grep -E '^(app/.*)|(.yarn/.*)|(.github/workflows/.*)' || 0 | wc -l | awk '{$1=$1};1') + change_count=$(echo "$diff_output" | grep -E '^(app/.*)|(.yarn/.*)|(.github/workflows/.*)' | wc -l | awk '{$1=$1};1') echo "$change_count files changed in app, .yarn, or .github/workflows"