refactor(ci): derive the manual cancel override from the event

force_cancel_in_progress existed so a manual sweep could supersede a running orchestrator on any ref. It was a flag every caller had to remember to pass, and only one ever did.

A called workflow inherits github.event_name from its caller, so the orchestrator can see for itself that a human dispatched the run. The input is gone; the group reads the event instead. Automatic triggers keep following the ref alone -- everything but main -- and a manual dispatch supersedes everywhere, main included, because someone typed it.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 5 committed 2026-08-25 16:29:11 +02:00
1 parent e3d91fd8b2
commit e4353d9742
4 files changed
+5 -11

No files matched your search

+1 -6
View File
@@ -87,15 +87,10 @@ on:
required: false
type: boolean
default: false
force_cancel_in_progress:
description: "When true, a new run always cancels the running orchestrator on the same ref, including on main, which is otherwise never cancelled."
required: false
type: boolean
default: false
concurrency:
group: infinito-test-${{ github.ref }}
cancel-in-progress: ${{ inputs.force_cancel_in_progress || github.ref != 'refs/heads/main' }}
cancel-in-progress: ${{ github.event_name == 'workflow_dispatch' || github.ref != 'refs/heads/main' }}
permissions:
actions: read
-1
View File
@@ -123,5 +123,4 @@ jobs:
workspace_track: ${{ inputs.workspace_track }}
instructions: ${{ inputs.instructions }}
tor: ${{ inputs.tor }}
force_cancel_in_progress: true
secrets: inherit