Skip to content

Commit 9c86b37

Browse files
committed
fix: enhance skip conditions for traycerai[bot] and non-workflow labels in orchestrator-agent.yml
1 parent 0a37193 commit 9c86b37

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

.github/workflows/orchestrator-agent.yml

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,24 +28,41 @@ jobs:
2828
skip-event:
2929
# Explicitly ignored event conditions. Add new skip cases to the `if` below.
3030
# When this job runs, its step outputs the event details and explains the skip.
31+
# Skip cases:
32+
# 1. traycerai[bot] actor — avoid feedback loops
33+
# 2. labeled events for non-workflow labels — only implementation:ready
34+
# and implementation:complete should trigger the orchestrator
3135
runs-on: ubuntu-24.04
3236
if: >-
33-
github.actor == 'traycerai[bot]'
37+
github.actor == 'traycerai[bot]' ||
38+
(github.event_name == 'issues' &&
39+
github.event.action == 'labeled' &&
40+
github.event.label.name != 'implementation:ready' &&
41+
github.event.label.name != 'implementation:complete')
3442
steps:
3543
- name: Report skipped event
3644
run: |
3745
echo "::notice::Orchestrator skipped — event explicitly ignored"
3846
echo "Event: ${{ github.event_name }}"
3947
echo "Action: ${{ github.event.action }}"
4048
echo "Actor: ${{ github.actor }}"
49+
echo "Label: ${{ github.event.label.name || 'N/A' }}"
4150
echo "Repo: ${{ github.repository }}"
4251
echo "Ref: ${{ github.ref }}"
43-
echo "Reason: Actor '${{ github.actor }}' is in the skip list"
52+
if [ "${{ github.actor }}" = "traycerai[bot]" ]; then
53+
echo "Reason: Actor 'traycerai[bot]' is in the skip list"
54+
else
55+
echo "Reason: Label '${{ github.event.label.name }}' is not a workflow-relevant label"
56+
fi
4457
4558
orchestrate:
4659
runs-on: ubuntu-24.04
4760
if: >-
4861
github.actor != 'traycerai[bot]' &&
62+
(github.event_name != 'issues' ||
63+
github.event.action != 'labeled' ||
64+
github.event.label.name == 'implementation:ready' ||
65+
github.event.label.name == 'implementation:complete') &&
4966
(github.event_name != 'workflow_run' ||
5067
github.event.workflow_run.conclusion == 'success')
5168
permissions:

0 commit comments

Comments
 (0)