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: Cancel previous workflow runs when new commits are pushed #3724

Merged
merged 2 commits into from
Mar 31, 2023

Conversation

theduke
Copy link
Contributor

@theduke theduke commented Mar 30, 2023

Not having this introduces pointless bloat to the CI, and might delay newer runs if a
lot of branches are being built.

There's no value in finishing the previous runs.

Copy link
Contributor

@Michael-F-Bryan Michael-F-Bryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes a lot of sense.

This might even speed things up a bit if GitHub have some sort of limit on the amount of compute resources a repo/organisation can use on CI at any one time.

Copy link
Contributor

@ptitSeb ptitSeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indeed

@theduke theduke force-pushed the ci-cancel-previous-runs branch from 257db95 to e610333 Compare March 30, 2023 15:19
Without this we introduces pointless bloat to the CI, and might delay newer runs if a
lot of branches are being built.

There's no value in finishing the previous runs.
@theduke theduke force-pushed the ci-cancel-previous-runs branch 2 times, most recently from 2f01d5e to 1b4aabf Compare March 30, 2023 20:18
@theduke theduke force-pushed the ci-cancel-previous-runs branch from 1b4aabf to 6162490 Compare March 31, 2023 10:00
@theduke theduke merged commit 9cb4bf3 into master Mar 31, 2023
@theduke theduke deleted the ci-cancel-previous-runs branch March 31, 2023 11:17
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

Successfully merging this pull request may close these issues.

3 participants