From 25a98ca2339d9a5c02f230026c8d595a34207bcd Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Wed, 24 Jul 2024 09:52:11 +1000 Subject: [PATCH 1/2] Add CI concurrency group --- .github/workflows/binaries.yml | 4 ++++ 1 file changed, 4 insertions(+) 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 From 35f70241f352244e1883d78b1a390dbf23d033a2 Mon Sep 17 00:00:00 2001 From: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com> Date: Wed, 24 Jul 2024 09:55:24 +1000 Subject: [PATCH 2/2] more --- .github/workflows/dependency-check.yml | 4 ++++ .github/workflows/e2e.yml | 4 ++++ .github/workflows/full-help-docs.yml | 4 ++++ .github/workflows/ledger-emulator.yml | 4 ++++ .github/workflows/rpc-tests.yml | 4 ++++ .github/workflows/rust.yml | 4 ++++ 6 files changed, 24 insertions(+) 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