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