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

Commits on Jul 27, 2022

  1. ci: cancel previous workflows when branch is updated

    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 committed Jul 27, 2022
    Configuration menu
    Copy the full SHA
    df2a19c View commit details
    Browse the repository at this point in the history