diff --git a/.github/workflows/ci-actions.yaml b/.github/workflows/ci-actions.yaml index cf9533b..f400812 100644 --- a/.github/workflows/ci-actions.yaml +++ b/.github/workflows/ci-actions.yaml @@ -9,6 +9,10 @@ on: permissions: contents: read # Needed to checkout the repository. +concurrency: + group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}" + cancel-in-progress: true + jobs: zizmor: name: zizmor diff --git a/.github/workflows/ci-code.yaml b/.github/workflows/ci-code.yaml index f4ed23d..ecf0c8a 100644 --- a/.github/workflows/ci-code.yaml +++ b/.github/workflows/ci-code.yaml @@ -11,6 +11,10 @@ on: permissions: contents: read # Needed to checkout the repository. +concurrency: + group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}" + cancel-in-progress: true + jobs: rustfmt: name: rustfmt diff --git a/.github/workflows/codeql.yaml b/.github/workflows/codeql.yaml index ca4f342..c4b1327 100644 --- a/.github/workflows/codeql.yaml +++ b/.github/workflows/codeql.yaml @@ -11,6 +11,10 @@ on: permissions: contents: read # Needed to checkout the repository. +concurrency: + group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}" + cancel-in-progress: true + jobs: analyze: name: analyze (${{ matrix.language }}) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index a46fc16..adf9b4f 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -25,6 +25,10 @@ on: permissions: contents: read # Needed to checkout the repository. +concurrency: + group: "${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}" + cancel-in-progress: true + jobs: artifacts: name: artifacts