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

ci: cancel runs on new commits #142

Open
YYYasin19 opened this issue May 12, 2023 · 0 comments
Open

ci: cancel runs on new commits #142

YYYasin19 opened this issue May 12, 2023 · 0 comments

Comments

@YYYasin19
Copy link
Contributor

Our CI currently let's runners run on old commits even though a newer one arrived.
This can be solved pretty easy by adding the following concurrency group to the ci.yaml file:

name: Workflow X

on: # ...

concurrency:
  group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
  cancel-in-progress: true

jobs: # ...

This can save resources (and make this faster, if you have a limited amount of runners)

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