Replies: 1 comment
-
|
This is a great suggestion — it would definitely help optimize CI resource usage. In the meantime, you can achieve a similar effect manually by adding a conditional step to your workflow that cancels running jobs when a PR is closed. For example: on: jobs: cancel: This uses styfle/cancel-workflow-action That said, having a native GitHub Actions setting (like cancel-on-close: true) would make this much cleaner and more reliable. Your RFE makes total sense — it would be great to see this built-in. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why are you starting this discussion?
Product Feedback
What GitHub Actions topic or product is this about?
Workflow Configuration
Discussion Details
We have multiple long-running PR CI checks that runs on pull_request or pull_request_target events. If the pull request is closed, I would like running jobs to be cancelled to avoid wasting resources and runners.
Beta Was this translation helpful? Give feedback.
All reactions