Stops all running and queued workflows in a repository when a CI job fails. This saves compute resources by preventing unnecessary workflow runs from continuing after a failure is detected.
How It Works
When a CI job fails in pezkuwi-sdk, the workflow-stopper action is triggered
This action dispatches a workflow in this repository
The workflow uses GitHub API to cancel all running/queued workflows for the same commit SHA
Setup
Required Secrets
In this repository (pezkuwichain/workflow-stopper):
WORKFLOW_STOPPER_TOKEN - A GitHub PAT or App token with actions:write permission on pezkuwichain/pezkuwi-sdk
In the target repository (pezkuwichain/pezkuwi-sdk):