Skip to content

Add --force flag to gh run cancel <run-id> #11073

@stepankuzmin

Description

@stepankuzmin

Describe the feature or problem you’d like to solve

Sometimes, a workflow run could not respond to regular cancellation, so we should be able to force it as outlined in https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#force-cancel-a-workflow-run

Proposed solution

gh run cancel --force <run-id>

Additional context

https://docs.github.com/en/rest/actions/workflow-runs?apiVersion=2022-11-28#force-cancel-a-workflow-run

Metadata

Metadata

Assignees

Labels

enhancementa request to improve CLIgh-runrelating to the gh run commandhelp wantedContributions welcome

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions