diff --git a/.github/workflows/bazel.yml b/.github/workflows/bazel.yml index 4fd8742411..666512017e 100644 --- a/.github/workflows/bazel.yml +++ b/.github/workflows/bazel.yml @@ -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 }})" diff --git a/.github/workflows/codeql_analysis.yml b/.github/workflows/codeql_analysis.yml index e5e8d323a2..fb6ea62a0f 100644 --- a/.github/workflows/codeql_analysis.yml +++ b/.github/workflows/codeql_analysis.yml @@ -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 diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index b249072f8d..28d874a354 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -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 diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index ad5bcbd6c2..6a28111d0b 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -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 }})" diff --git a/.github/workflows/license-checker.yaml b/.github/workflows/license-checker.yaml index 259fdd7ffa..781d0e1a26 100644 --- a/.github/workflows/license-checker.yaml +++ b/.github/workflows/license-checker.yaml @@ -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 diff --git a/.github/workflows/maven.yaml b/.github/workflows/maven.yaml index aaf165420c..15584e2cd1 100644 --- a/.github/workflows/maven.yaml +++ b/.github/workflows/maven.yaml @@ -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 }})" diff --git a/.github/workflows/misspell_check.yml b/.github/workflows/misspell_check.yml index 81729e42a4..aca1b04888 100644 --- a/.github/workflows/misspell_check.yml +++ b/.github/workflows/misspell_check.yml @@ -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