Skip to content

Instantly share code, notes, and snippets.

@startergo
Created January 8, 2026 17:53
Show Gist options
  • Select an option

  • Save startergo/8106fffe1b6a47f560cbcefd6ef63d2c to your computer and use it in GitHub Desktop.

Select an option

Save startergo/8106fffe1b6a47f560cbcefd6ef63d2c to your computer and use it in GitHub Desktop.
Force cancel a GitHub Actions workflow
  • To force cancel a GitHub Actions workflow run: Using gh CLI (easier):
gh api -X POST \
  repos/OWNER/REPO/actions/runs/RUN_ID/force-cancel

i.e.

gh api -X POST \
  -H "Accept: application/vnd.github+json" \
  repos/startergo/homebrew-angle/actions/runs/20825449717/force-cancel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment