Skip to content

Commit 6ca8698

Browse files
committed
fix: use -- in grep to avoid pattern-as-option error
1 parent b565e34 commit 6ca8698

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/orchestrator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
fi
7474
7575
# 4. Find the next task
76-
NEXT_TASK=$(echo "$BODY" | grep -m 1 "- \[ \] .*#[0-9]\+" | grep -o "#[0-9]\+" | head -n 1 | tr -d '#' || true)
76+
NEXT_TASK=$(echo "$BODY" | grep -m 1 -- "- \[ \] .*#[0-9]\+" | grep -o "#[0-9]\+" | head -n 1 | tr -d '#' || true)
7777
7878
if [ -z "$NEXT_TASK" ]; then
7979
echo "All tasks processed."

0 commit comments

Comments
 (0)