eve icon indicating copy to clipboard operation
eve copied to clipboard

Cancel workflows automatically when a PR is closed

Open OhmSpectator opened this issue 6 months ago • 0 comments

Currently, Eden tests (and possibly other workflows) continue running even after a pull request is closed without being merged. This leads to unnecessary consumption of GitHub Actions runner time.

For example, workflow run for #4911 continued after the PR was closed: https://github.com/lf-edge/eve/actions/runs/15417561867/job/43392693755?pr=4911

It had to be canceled manually.

Suggested solution: consider adding a workflow_run or pull_request handler to detect the closed event and cancel related jobs via the GitHub API.

OhmSpectator avatar Jun 03 '25 14:06 OhmSpectator