durandtibo/cancel-queued-runs
Automatically cancel GitHub Actions workflow runs that have been queued longer than a configurable number of hours
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 22, 2026
- License
- BSD
Pinned Snippet
uses: durandtibo/cancel-queued-runs-action@3f57ce49d16e0e14e7dd4aed984ff77470d8e357 # v1.9tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | GitHub token with actions:write permission. | yes | — |
| repo | Target repository in owner/name format (e.g., 'octocat/hello-world'). | yes | — |
| max_age_hours | Maximum number of hours a workflow run is allowed to stay queued before being cancelled. Must be a positive integer. The action uses standard cancel for runs between max_age_hours and max_age_hours+3, and force-cancel for runs older than max_age_hours+3 hours. | no | 24 |
Outputs
no outputs