diff --git a/.github/workflows/binaries.yml b/.github/workflows/binaries.yml index 97304b7bd..191b604fa 100644 --- a/.github/workflows/binaries.yml +++ b/.github/workflows/binaries.yml @@ -5,6 +5,10 @@ on: types: [published] pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }}-{{ github.event_name }} + cancel-in-progress: true + defaults: run: shell: bash diff --git a/.github/workflows/dependency-check.yml b/.github/workflows/dependency-check.yml index 999c41878..4abad18a0 100644 --- a/.github/workflows/dependency-check.yml +++ b/.github/workflows/dependency-check.yml @@ -5,6 +5,10 @@ on: branches: [main, release/**] pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }} + cancel-in-progress: true + defaults: run: shell: bash diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 0704d4a55..7f032b753 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -5,6 +5,10 @@ on: branches: [main, release/**] pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }} + cancel-in-progress: true + jobs: integration: name: System tests diff --git a/.github/workflows/full-help-docs.yml b/.github/workflows/full-help-docs.yml index 4893a88fd..70c3ca88e 100644 --- a/.github/workflows/full-help-docs.yml +++ b/.github/workflows/full-help-docs.yml @@ -2,6 +2,10 @@ name: CLI Help Doc on: [push, pull_request] +concurrency: + group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }} + cancel-in-progress: true + permissions: contents: read # Optional: allow read access to pull request. Use with `only-new-issues` option. diff --git a/.github/workflows/ledger-emulator.yml b/.github/workflows/ledger-emulator.yml index 4a092c1ba..87df86b94 100644 --- a/.github/workflows/ledger-emulator.yml +++ b/.github/workflows/ledger-emulator.yml @@ -5,6 +5,10 @@ on: branches: [main, release/**] pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }} + cancel-in-progress: true + defaults: run: shell: bash diff --git a/.github/workflows/rpc-tests.yml b/.github/workflows/rpc-tests.yml index ad999830a..72a1ec5c0 100644 --- a/.github/workflows/rpc-tests.yml +++ b/.github/workflows/rpc-tests.yml @@ -5,6 +5,10 @@ on: branches: [main, release/**] pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }} + cancel-in-progress: true + jobs: test: name: test RPC diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index f444aa52d..6e08e2635 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -5,6 +5,10 @@ on: branches: [main, release/**] pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref_protected == 'true' && github.sha || github.ref }} + cancel-in-progress: true + defaults: run: shell: bash