Cancel existing workflows on subsequent PR push

Cancel existing workflows on subsequent PR push.

Signed-off-by: David Enyeart <enyeart@us.ibm.com>
This commit is contained in:
David Enyeart 2023-03-22 12:12:12 -04:00 committed by Ry Jones
parent 7c42ff3d8e
commit 73e4d98dd9
13 changed files with 52 additions and 7 deletions

View file

@ -11,6 +11,10 @@ on:
pull_request:
branches: [ "main", "release-2.5" ]
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
env:
GO_VER: 1.19.6
NODE_VER: 16.x

View file

@ -16,6 +16,10 @@ on:
branches: [ "main", "release-2.5" ]
paths: [ "asset-transfer-basic/rest-api-typescript/**" ]
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
test-sample:
runs-on: ubuntu-20.04

View file

@ -8,6 +8,10 @@ on:
- "main"
- "release-2.5"
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
ansible:
runs-on: ubuntu-20.04
@ -53,5 +57,3 @@ jobs:
uses: ./.github/actions/fsat-setup
- run: just test-console
working-directory: full-stack-asset-transfer-guide

View file

@ -11,6 +11,10 @@ on:
pull_request:
branches: [ "main", "release-2.5" ]
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
basic:
runs-on: ubuntu-20.04

View file

@ -11,6 +11,10 @@ on:
pull_request:
branches: [ "main", "release-2.5" ]
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
events:
runs-on: ubuntu-20.04
@ -34,4 +38,3 @@ jobs:
env:
CHAINCODE_NAME: ${{ matrix.chaincode-name }}
CHAINCODE_LANGUAGE: ${{ matrix.chaincode-language }}

View file

@ -11,6 +11,10 @@ on:
pull_request:
branches: [ "main", "release-2.5" ]
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
gateway:
runs-on: ubuntu-20.04

View file

@ -11,6 +11,10 @@ on:
pull_request:
branches: [ "main", "release-2.5" ]
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
hsm:
runs-on: ubuntu-20.04

View file

@ -11,6 +11,10 @@ on:
pull_request:
branches: [ "main", "release-2.5" ]
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
ccaas-java:
runs-on: ubuntu-20.04

View file

@ -11,6 +11,10 @@ on:
pull_request:
branches: [ "main", "release-2.5" ]
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
basic:
runs-on: ubuntu-20.04
@ -34,4 +38,3 @@ jobs:
env:
CHAINCODE_NAME: ${{ matrix.chaincode-name }}
CHAINCODE_LANGUAGE: ${{ matrix.chaincode-language }}

View file

@ -11,6 +11,10 @@ on:
pull_request:
branches: [ "main", "release-2.5" ]
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
off-chain:
runs-on: ubuntu-20.04

View file

@ -11,6 +11,10 @@ on:
pull_request:
branches: [ "main", "release-2.5" ]
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
private:
runs-on: ubuntu-20.04
@ -33,4 +37,3 @@ jobs:
env:
CHAINCODE_NAME: ${{ matrix.chaincode-name }}
CHAINCODE_LANGUAGE: ${{ matrix.chaincode-language }}

View file

@ -11,6 +11,10 @@ on:
pull_request:
branches: [ "main", "release-2.5" ]
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
SBE:
runs-on: ubuntu-20.04
@ -34,4 +38,3 @@ jobs:
env:
CHAINCODE_NAME: ${{ matrix.chaincode-name }}
CHAINCODE_LANGUAGE: ${{ matrix.chaincode-language }}

View file

@ -11,6 +11,10 @@ on:
pull_request:
branches: [ "main", "release-2.5" ]
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
secured:
runs-on: ubuntu-20.04
@ -33,4 +37,3 @@ jobs:
env:
CHAINCODE_NAME: ${{ matrix.chaincode-name }}
CHAINCODE_LANGUAGE: ${{ matrix.chaincode-language }}