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: pull_request:
branches: [ "main", "release-2.5" ] branches: [ "main", "release-2.5" ]
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
env: env:
GO_VER: 1.19.6 GO_VER: 1.19.6
NODE_VER: 16.x NODE_VER: 16.x

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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