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

TESTING -- ci: cancel previous workflows when branch is updated #5

Closed
wants to merge 1 commit into from

Conversation

jforissier
Copy link
Owner

When commits are pushed to a branch, the CI workflow is triggered.
However in most cases (development branches, pull requests) we don't
want previous jobs to keep running; it is just wasteful of resources.
Therefore add a special workflow to deal with the situation [1].

An exception is made for pushes to the master branch, otherwise nothing
might get build for a long time if many updates are made back-to-back.

Link: [1] https://github.com/marketplace/actions/cancel-workflow-action#advanced-pull-requests-from-forks
Signed-off-by: Jerome Forissier jerome.forissier@linaro.org

When commits are pushed to a branch, the CI workflow is triggered.
However in most cases (development branches, pull requests) we don't
want previous jobs to keep running; it is just wasteful of resources.
Therefore add a special workflow to deal with the situation [1].

An exception is made for pushes to the master branch, otherwise nothing
might get build for a long time if many updates are made back-to-back.

Link: [1] https://github.com/marketplace/actions/cancel-workflow-action#advanced-pull-requests-from-forks
Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org>
@jforissier jforissier closed this Jul 27, 2022
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