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

Cancel CI tests if a new run is started #1758

Closed
mirpedrol opened this issue Aug 22, 2022 · 0 comments
Closed

Cancel CI tests if a new run is started #1758

mirpedrol opened this issue Aug 22, 2022 · 0 comments

Comments

@mirpedrol
Copy link
Member

mirpedrol commented Aug 22, 2022

Description of feature

As suggested by @ewels, add the following lines to all CI tests.
This code cancels a run if a new one starts right after.

# Cancel if a newer run is started
concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant