Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI not cancelled when new commit pushed #281

Closed
willtebbutt opened this issue Apr 20, 2021 · 2 comments
Closed

CI not cancelled when new commit pushed #281

willtebbutt opened this issue Apr 20, 2021 · 2 comments

Comments

@willtebbutt
Copy link
Member

willtebbutt commented Apr 20, 2021

I've been commiting lots of stuff in #280 , thereby generating a very large number of jobs for CI to churn through.

Is there a way to ensure that existing jobs on a particular branch are cancelled when someone pushes a new commit?

edit: for example, our actions page is now flooded with CI for tiny docs udpates.

@devmotion
Copy link
Member

AFAICT (e.g., https://github.community/t/is-it-possible-to-cancel-previous-jobs-automatically-when-the-pull-request-is-updated/16779/5 and https://github.community/t/github-actions-cancel-redundant-builds-not-solved/16025) such a feature is not supported by Github actions. However, it seems some people created custom actions for this purpose which one could maybe use. Since I haven't looked into this more carefully, I don't know which one is recommended though.

Of course, an alternative would be to not push after each commit if there are many more to come or to cancel jobs manually if they are not needed anymore.

@devmotion
Copy link
Member

Seems to be addressed by #292.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants