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: Automatically cancel old PR jobs #7887

Merged
merged 1 commit into from Dec 14, 2022

Conversation

Smjert
Copy link
Member

@Smjert Smjert commented Dec 14, 2022

Set the concurrency group for the workflow to either the PR number or the run id so that in the first case, if there are multiple updates to a PR that start multiple build jobs, only the last job will run and the previous ones will be canceled, to avoid starving the CI.

The fallback is for a build job not started from a PR, the run id is unique, so no canceling will happen.

Set the concurrency group for the workflow to
either the PR number or the run id so that in the first case,
if there are multiple updates to a PR that start multiple build jobs,
only the last job will run and the previous ones will be canceled,
to avoid starving the CI.

The fallback is for a build job not started from a PR, the run id is
unique, so no canceling will happen.
@Smjert Smjert added the CI/CD Anything about the Continuous Integration or Continuous Deployment tool used by the repository label Dec 14, 2022
@Smjert Smjert requested a review from a team as a code owner December 14, 2022 12:51
@Smjert Smjert merged commit 81155c3 into osquery:master Dec 14, 2022
@Smjert Smjert deleted the stefano/ci/pr-cancel-old-jobs branch December 14, 2022 16:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD Anything about the Continuous Integration or Continuous Deployment tool used by the repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants