From cd8467b371eb69d893d0423c5214c91f329c693e Mon Sep 17 00:00:00 2001 From: Benjamin DeMann Date: Tue, 10 Dec 2024 13:10:23 -0700 Subject: [PATCH] ignore white space --- .github/workflows/pr_tasks_check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr_tasks_check.yml b/.github/workflows/pr_tasks_check.yml index 1685031feb..fe96466329 100644 --- a/.github/workflows/pr_tasks_check.yml +++ b/.github/workflows/pr_tasks_check.yml @@ -25,9 +25,9 @@ jobs: PR_BODY=$(echo "$PR_DATA" | jq -r .body) # Check for unchecked tasks (- [ ]) - if echo "$PR_BODY" | grep -q "\- \[ \]"; then + if echo "$PR_BODY" | grep -q "\s*-\s*\[ \]"; then echo "Error: The following checkboxes are not marked as completed:" - echo "$PR_BODY" | grep "\- \[ \]" + echo "$PR_BODY" | grep "\s*-\s*\[ \]" exit 1 fi