Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 12

Github actions: Cancel redundant builds

Solved! Go to Solution.

Is it possible to auto cancel redundant builds?

 

Example: When a newer build is triggered on the same branch. Cancel running builds and start on the new one. 

11 Replies
Solution
Community Manager
Message 2 of 12

Re: Github actions: Cancel redundant builds

No, it isn't currently possible to auto-cancel redundant builds. I'll pass along the feedback to the team, however.

 

Thanks!

Pilot Lvl 1
Message 3 of 12

Re: Github actions: Cancel redundant builds

@lee-dohm is this under consideration at all?

Here are the similar features in circle ci:

auto-cancel.png

And Travis:

https://docs.travis-ci.com/user/customizing-the-build#building-only-the-latest-commit

 

Thanks!

Copilot Lvl 3
Message 4 of 12

Re: Github actions: Cancel redundant builds

GitHub actions are going far beyond building things on push. A single workflow file can handle both push events and any arbitrary webhook event as well not direcly related to push.

 

It may become quite tricky to handle these scenarios. I'd imagine if this feature is introduced it should only be limited to few events where it make sense (push, pr synchronize etc) but not all.

Copilot Lvl 2
Message 5 of 12

Re: Github actions: Cancel redundant builds

This would be super useful imo!
Copilot Lvl 2
Message 6 of 12

Re: Github actions: Cancel redundant builds

Would also love this feature :)

Copilot Lvl 2
Message 7 of 12

Re: Github actions: Cancel redundant builds

Any update regarding this feature?

Copilot Lvl 2
Message 8 of 12

Re: Github actions: Cancel redundant builds

I'm adding my voice in support for that feature.
At Spendesk we just switched to GitHub Actions and the workflow we run is quite expensive. It would greatly help if we could save some computing power with this.

Copilot Lvl 3
Message 9 of 12

Re: Github actions: Cancel redundant builds

any chance this could come sooon? this would help a lot when using mac machines. building an app on ios can take up to 30 min  and pushing constantly would be just expensive :/ 

Copilot Lvl 2
Message 10 of 12

Re: Github actions: Cancel redundant builds

Looking forward to this kind of feature! :)