Configure GitHub workflows to use concurrency cancel-in-progress for (#10445)

See recommended best practices at Apache
https://cwiki.apache.org/confluence/pages/viewpage.action?spaceKey=INFRA&title=GitHub+Actions+Recommended+Practices

Signed-off-by: Aurélien Pupier <apupier@ibm.com>
This commit is contained in:
Aurélien Pupier
2026-06-11 04:53:22 +02:00
committed by GitHub
parent 8997e8cdf0
commit be38a8211b
7 changed files with 30 additions and 0 deletions
+4
View File
@@ -8,6 +8,10 @@ on:
- develop
- bazel
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build:
name: "bazel-compile (${{ matrix.os }})"
+4
View File
@@ -7,6 +7,10 @@ on:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
CodeQL-Build:
runs-on: ubuntu-latest
+5
View File
@@ -4,6 +4,11 @@ on:
types: [opened, reopened, synchronize]
push:
branches: [master, develop]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
calculate-coverage:
runs-on: ubuntu-latest
+4
View File
@@ -5,6 +5,10 @@ on:
push:
branches: [master, develop]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
it-test:
name: "maven-compile (${{ matrix.os }}, JDK-${{ matrix.jdk }})"
+4
View File
@@ -22,6 +22,10 @@ on:
- develop
- master
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
check-license:
runs-on: ubuntu-latest
+4
View File
@@ -5,6 +5,10 @@ on:
push:
branches: [master, develop, bazel]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
java_build:
name: "maven-compile (${{ matrix.os }}, JDK-${{ matrix.jdk }})"
+5
View File
@@ -4,6 +4,11 @@ on:
types: [opened, reopened, synchronize]
push:
branches: [master, develop]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
misspell-check:
runs-on: ubuntu-latest