mirror of
https://github.com/Minestom/Minestom
synced 2026-08-18 20:26:11 -04:00
fix(ci): Concurrency canceling jobs (#3340)
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:
parent
0cabdd6b0a
commit
8026e517e2
3 changed files with 6 additions and 8 deletions
6
.github/workflows/build-main.yml
vendored
6
.github/workflows/build-main.yml
vendored
|
|
@ -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'
|
||||
|
|
|
|||
6
.github/workflows/build-pr.yml
vendored
6
.github/workflows/build-pr.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
|
@ -6,6 +6,8 @@ permissions:
|
|||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
concurrency:
|
||||
group: publish-${{ github.ref }}
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v7
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue