File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -383,12 +383,6 @@ jobs:
383383 BOXES=$(printf '%s\n' "$BODY" | grep "^- \[")
384384 echo "Found boxes: $BOXES"
385385
386- # Ensure at least one checkbox exists
387- if [ -z "$BOXES" ]; then
388- echo "❌ No checkboxes found in '### Mandatory checks'!"
389- exit 1
390- fi
391-
392386 while IFS= read -r line; do
393387 if ! printf '%s\n' "$line" | grep -Eq "^- \[(x|/| )\] "; then
394388 echo "❌ Found improperly formatted checkbox: '$line'"
@@ -399,11 +393,11 @@ jobs:
399393 LINE_COUNT=$(echo "$BOXES" | wc -l)
400394
401395 if [ "$LINE_COUNT" -ne 7 ]; then
402- echo "❌ $LINE_COUNT instead of 7 lines"
396+ echo "❌ Found $LINE_COUNT lines instead of 7 required lines"
403397 exit 1
404398 fi
405399
406- echo "✅ All checkboxes are in the correct format."
400+ echo "✅ All checkboxes are present and in the correct format."
407401 env :
408402 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
409403
You can’t perform that action at this time.
0 commit comments