fix(ci): Concurrency canceling jobs (#3340)
Some checks failed
Build & Test Main / JVM Check (push) Failing after 4s
Build & Test Main / Javadoc Compilation (push) Failing after 4s
Build & Test Main / Native Test (push) Has been skipped
Build & Test Main / Publish Snapshot (push) Has been skipped

We only need the concurrency check for when we are publishing, so we can avoid canceling for most pull requests. There is likely an improvement possible with release but avoiding the race but since the commit sha is saved is more difficult.
This commit is contained in:
Kerman 2026-08-16 18:49:23 +00:00 committed by GitHub
parent 0cabdd6b0a
commit 8026e517e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 8 deletions

View file

@ -7,10 +7,6 @@ on:
permissions:
contents: write
concurrency:
group: build-main-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: JVM Check
@ -84,6 +80,8 @@ jobs:
name: Publish Snapshot
needs: [ build, javadoc, native-test ]
runs-on: ubuntu-latest
concurrency:
group: publish-${{ github.ref }}
steps:
- name: Generate Bot Token
if: needs.native-test.outputs.metadata-updated == 'true'

View file

@ -9,10 +9,6 @@ on:
permissions:
contents: read
concurrency:
group: build-pr-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build:
name: JVM Check
@ -136,6 +132,8 @@ jobs:
needs.native-test.result == 'success' &&
(needs.binary-compatibility.result == 'success' || needs.binary-compatibility.result == 'skipped')
runs-on: ubuntu-latest
concurrency:
group: publish-pr-${{ github.head_ref }}
steps:
- name: Checkout Repository
uses: actions/checkout@v7

View file

@ -6,6 +6,8 @@ permissions:
jobs:
release:
runs-on: ubuntu-latest
concurrency:
group: publish-${{ github.ref }}
steps:
- name: Checkout Repository
uses: actions/checkout@v7