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

releng - github actions use concurrency option to only run on latest push #8012

Merged
merged 1 commit into from
Nov 21, 2022

Conversation

kapilt
Copy link
Collaborator

@kapilt kapilt commented Nov 19, 2022

goal - perserve github action workers

normal behavior when pushing to a pr branch that already has a workflow/ci running is to queue an additional run of the
workflow/ci and all jobs for each push. this can result in a single pr exhausting all available workers, and a user
waiting on ci to finish for a previous commit in the pr, when the general preference is to get a complete run of just the
latest pr. using https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#concurrency
we can cancel the in progress runs, and free up workers to run workflow/ci for the latest push sha.

Copy link
Member

@ajkerrigan ajkerrigan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, thanks 👍

@thisisshi thisisshi merged commit 3e5992c into cloud-custodian:master Nov 21, 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.

3 participants