Skip to content

feat(ci): cancel existing running workflows for a PR when a new change is pushed to that PR #927

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jenstroeger
Copy link
Owner

Suppose we’re working on a PR and push a change to the PR’s branch: that’ll trigger the Check change set workflow. Now, if we push multiple times in quick succession then every push will trigger that workflow and suddenly we have that workflow run concurrently multiple times — even though, technically, only the most recent push is required.

This change automatically cancels existing workflow runs (if any) upon pushing to a PR’s branch.

For more details, see the docs.

@jenstroeger jenstroeger requested a review from behnazh as a code owner April 27, 2025 12:33
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.

1 participant