Skip to content

Commit 75eeb55

Browse files
committed
fix: orchestrator guard now matches against issue title
1 parent 87bf76a commit 75eeb55

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/orchestrator.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,9 @@ jobs:
4242
# Guard: Only process workflow_run if it matches the CURRENT task
4343
if [ "$EVENT_NAME" == "workflow_run" ]; then
4444
RUN_TITLE="${{ github.event.workflow_run.display_title }}"
45-
if [[ "$RUN_TITLE" != *"$CURRENT"* ]]; then
46-
echo "Workflow run '$RUN_TITLE' does not match current task #$CURRENT. Skipping."
45+
ISSUE_TITLE=$(gh issue view $CURRENT --json title --jq '.title')
46+
if [[ "$RUN_TITLE" != "$ISSUE_TITLE" ]]; then
47+
echo "Workflow run '$RUN_TITLE' does not match current task #$CURRENT title '$ISSUE_TITLE'. Skipping."
4748
exit 0
4849
fi
4950
fi

0 commit comments

Comments
 (0)