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] Do not cancel concurrent CI jobs on main #221

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

henrybear327
Copy link
Collaborator

When we merge a PR into the main branch before the previously merged commit finishes, the CI jobs will be cancelled (see https://github.com/netbox-community/netbox-operator/commits/main/), which is not ideal as we would like to see if all commits merged into the main branch can pass CI checks.

When we merge a PR into the main branch before the
previously merged commit finishes, the CI jobs
will be cancelled, which is not ideal as we would
like to see if all commits merged into main can
pass CI checks.
@henrybear327 henrybear327 self-assigned this Jan 27, 2025
@@ -9,7 +9,7 @@ on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
cancel-in-progress: ${{ !contains(github.ref, 'main/')}}
Copy link
Collaborator Author

@henrybear327 henrybear327 Jan 27, 2025

Choose a reason for hiding this comment

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

The same should be added for v* in the case where we do releases in quick succession (which shouldn't happen), but I haven't figured out how so far, thus leaving this out but noting it down here.

Reference: https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/control-the-concurrency-of-workflows-and-jobs

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.

1 participant