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

GhA: Cancel in-progress builds on new trigger #316

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

henrirosten
Copy link
Collaborator

@henrirosten henrirosten commented Oct 10, 2023

Cancel any in-progress build workflow runs from the same PR when a new version of the PR is pushed.
Before this change, pre-merge build workflows would continue to run even if a new version of the PR was pushed.

This change was tested in a forked repository. As an example, the following workflow run in the forked repo was canceled due to new changes pushed to PR while an earlier build was still in-progress: https://github.com/henrirosten/ghaf/actions/runs/6470895940

@henrirosten henrirosten temporarily deployed to internal-build-workflow October 10, 2023 14:53 — with GitHub Actions Inactive
@henrirosten henrirosten marked this pull request as ready for review October 10, 2023 14:59
@brianmcgillion brianmcgillion merged commit c7cc8d8 into main Oct 11, 2023
9 checks passed
@henrirosten henrirosten deleted the cancel-in-progress-builds branch November 14, 2023 13:26
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.

2 participants