Skip to main content
github.cancelWorkflowRun requests cancellation of an active workflow run.
automations/cancel-github-workflow.automation.ts
Provide the repository and runId. force defaults to false; set it only when normal cancellation cannot stop the run. Returns {} after GitHub accepts the request. Cancellation is asynchronous, so use workflow-run triggers or getWorkflowRun to observe completion. Requires Actions write permission.