From 57cd06e92b45fa318db58462ec10798e7e8590c9 Mon Sep 17 00:00:00 2001 From: Molly Karcher Date: Wed, 24 Jul 2024 13:57:52 -0400 Subject: [PATCH] Add CI concurrency group for some workflows --- .github/workflows/dependency-check.yml | 4 ++++ .github/workflows/e2e.yml | 4 ++++ .github/workflows/golang.yml | 4 ++++ .github/workflows/rust.yml | 4 ++++ .github/workflows/soroban-rpc.yml | 4 ++++ 5 files changed, 20 insertions(+) diff --git a/.github/workflows/dependency-check.yml b/.github/workflows/dependency-check.yml index dc865935..820f2f0a 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 f14121e9..fb492f0c 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/golang.yml b/.github/workflows/golang.yml index 21db63bb..f7696412 100644 --- a/.github/workflows/golang.yml +++ b/.github/workflows/golang.yml @@ -4,6 +4,10 @@ on: branches: [ main, release/** ] 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/rust.yml b/.github/workflows/rust.yml index 6b1cb36a..487ee752 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 diff --git a/.github/workflows/soroban-rpc.yml b/.github/workflows/soroban-rpc.yml index e2d72a04..c9e3dc1f 100644 --- a/.github/workflows/soroban-rpc.yml +++ b/.github/workflows/soroban-rpc.yml @@ -9,6 +9,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: Unit tests