diff --git a/.github/workflows/backport.yaml b/.github/workflows/backport.yaml index 67445b77..10968e38 100644 --- a/.github/workflows/backport.yaml +++ b/.github/workflows/backport.yaml @@ -4,6 +4,10 @@ on: pull_request_target: types: [closed] # fires when PR is closed (merged) +concurrency: + group: backport-${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + permissions: contents: write pull-requests: write diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index a33c78e2..535f483e 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -7,6 +7,10 @@ on: pull_request: paths-ignore: - '**.md' +concurrency: + group: pre-commit-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: pre-commit: runs-on: ubuntu-22.04 diff --git a/.github/workflows/pull-requests-release.yaml b/.github/workflows/pull-requests-release.yaml index 815ccb59..7a49f012 100644 --- a/.github/workflows/pull-requests-release.yaml +++ b/.github/workflows/pull-requests-release.yaml @@ -4,6 +4,10 @@ on: pull_request: types: [labeled, opened, synchronize, reopened, closed] +concurrency: + group: pull-requests-release-${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + jobs: verify: name: Test Release diff --git a/.github/workflows/pull-requests.yaml b/.github/workflows/pull-requests.yaml index 92226c2a..594d4444 100644 --- a/.github/workflows/pull-requests.yaml +++ b/.github/workflows/pull-requests.yaml @@ -4,6 +4,10 @@ on: pull_request: types: [labeled, opened, synchronize, reopened] +concurrency: + group: pull-requests-${{ github.workflow }}-${{ github.event.pull_request.number }} + cancel-in-progress: true + jobs: e2e: name: Build and Test diff --git a/.github/workflows/tags.yaml b/.github/workflows/tags.yaml index f50c9b0a..d0e61aa2 100644 --- a/.github/workflows/tags.yaml +++ b/.github/workflows/tags.yaml @@ -5,6 +5,10 @@ on: tags: - 'v*.*.*' # vX.Y.Z or vX.Y.Z-rcN +concurrency: + group: tags-${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: prepare-release: name: Prepare Release