Skip to content

Add concurrency groups to CI workflows#1065

Open
vharseko wants to merge 2 commits into
OpenIdentityPlatform:masterfrom
vharseko:ci/add-concurrency
Open

Add concurrency groups to CI workflows#1065
vharseko wants to merge 2 commits into
OpenIdentityPlatform:masterfrom
vharseko:ci/add-concurrency

Conversation

@vharseko

@vharseko vharseko commented Jul 9, 2026

Copy link
Copy Markdown
Member

Summary

Add a top-level concurrency group (keyed on ${{ github.workflow }}-${{ github.ref }}) to the GitHub Actions workflows so redundant runs on the same ref collapse instead of piling up.

Workflow cancel-in-progress Behaviour
build.yml true A new push/PR build cancels the now-superseded in-flight run — the main runner-time saver.
deploy.yml false Overlapping runs queue rather than aborting an in-flight Maven Central publish.
release.yml false Never interrupts a release mid-way (release:prepare/release:perform, tag push, GitHub release).

Rationale

cancel-in-progress: true is safe and desirable for build.yml: superseded commits don't need their builds finished. For release.yml and deploy.yml it is deliberately false — cancelling those midway could leave a half-published Maven Central staging repo, a partial GitHub release, or dangling tags, so overlapping runs serialize instead.

Notes

Add a top-level concurrency group keyed on workflow + ref to every
GitHub Actions workflow so redundant runs on the same ref collapse:

- build.yml: cancel-in-progress=true, so a new push/PR build cancels the
  now-superseded in-flight one (the main runner-time saver).
- release.yml / deploy.yml: cancel-in-progress=false, so overlapping runs
  queue instead of aborting an in-flight Maven Central publish, tag push
  or GitHub release midway.
Comment thread .github/workflows/deploy.yml Outdated
Co-authored-by: Maxim Thomas <maxim.thomas@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build ci CI, GitHub Actions, or build pipeline

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants