Skip to content

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

Closed
jforissier wants to merge 1 commit intomasterfrom
ci-cancel-previous
Closed

TESTING -- ci: cancel previous workflows when branch is updated#5
jforissier wants to merge 1 commit intomasterfrom
ci-cancel-previous

Conversation

@jforissier
Copy link
Copy Markdown
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 [email protected]

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 <[email protected]>
@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