From 61bd18860646fc1d4d8155c3f1e1e92e44b87c26 Mon Sep 17 00:00:00 2001 From: Ry Jones Date: Wed, 29 Mar 2023 07:43:24 -0700 Subject: [PATCH] chore(build): Autocancel duplicate runs Signed-off-by: Ry Jones --- .github/workflows/all-nodejs-packages-publish.yaml | 4 ++++ .github/workflows/besu-all-in-one-publish.yaml | 4 ++++ .github/workflows/cactus-whitepaper-publish.yaml | 4 ++++ .github/workflows/cmd-api-server-publish.yaml | 4 ++++ .github/workflows/codeql-analysis.yml | 4 ++++ .github/workflows/commitlint-pull-request.yml | 6 +++++- .github/workflows/connector-besu-publish.yaml | 4 ++++ .github/workflows/connector-corda-server-publish.yaml | 4 ++++ .github/workflows/connector-fabric-publish.yaml | 4 ++++ .../workflows/corda-4-6-all-in-one-obligation-publish.yaml | 4 ++++ .../workflows/corda-4-7-all-in-one-obligation-publish.yaml | 4 ++++ .../workflows/corda-4-8-all-in-one-obligation-publish.yaml | 4 ++++ .github/workflows/dependent-issues.yml | 4 ++++ .github/workflows/dev-container-vscode-publish.yaml | 4 ++++ .github/workflows/example-carbon-accounting-publish.yaml | 4 ++++ .github/workflows/example-supply-chain-app-publish.yaml | 4 ++++ .github/workflows/fabric-all-in-one-publish.yaml | 4 ++++ .github/workflows/fabric2-all-in-one-publish.yaml | 4 ++++ .github/workflows/ghpkg-all-kotlin-api-clients-publish.yaml | 4 ++++ .github/workflows/iroha-all-in-one-publish.yaml | 4 ++++ .github/workflows/iroha2-all-in-one-publish.yaml | 4 ++++ .github/workflows/keychain-vault-server-publish.yaml | 4 ++++ .github/workflows/publish-npm.yaml | 4 ++++ .github/workflows/quorum-all-in-one-publish.yaml | 4 ++++ .../workflows/quorum-multi-party-all-in-one-publish.yaml | 4 ++++ .github/workflows/rust-compiler-publish.yaml | 4 ++++ .github/workflows/sawtooth-all-in-one-publish.yaml | 4 ++++ .github/workflows/semantic-pull-request.yaml | 4 ++++ .github/workflows/test-npm-registry-publish.yaml | 4 ++++ .github/workflows/test_weaver-asset-exchange-besu.yml | 4 ++++ .github/workflows/test_weaver-asset-exchange-corda.yml | 4 ++++ .github/workflows/test_weaver-asset-exchange-fabric.yml | 4 ++++ .github/workflows/test_weaver-asset-transfer.yml | 4 ++++ .github/workflows/test_weaver-corda-interop-app.yml | 4 ++++ .github/workflows/test_weaver-data-sharing.yml | 4 ++++ .github/workflows/test_weaver-docker-build.yml | 4 ++++ .github/workflows/test_weaver-go.yml | 4 ++++ .github/workflows/test_weaver-node-pkgs.yml | 4 ++++ .github/workflows/test_weaver-relay.yml | 6 +++++- 39 files changed, 158 insertions(+), 2 deletions(-) diff --git a/.github/workflows/all-nodejs-packages-publish.yaml b/.github/workflows/all-nodejs-packages-publish.yaml index 89c00fd4e5..7779b386f1 100644 --- a/.github/workflows/all-nodejs-packages-publish.yaml +++ b/.github/workflows/all-nodejs-packages-publish.yaml @@ -7,6 +7,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build-and-publish-packages: diff --git a/.github/workflows/besu-all-in-one-publish.yaml b/.github/workflows/besu-all-in-one-publish.yaml index 8a2dff512b..3244b49440 100644 --- a/.github/workflows/besu-all-in-one-publish.yaml +++ b/.github/workflows/besu-all-in-one-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-besu-all-in-one diff --git a/.github/workflows/cactus-whitepaper-publish.yaml b/.github/workflows/cactus-whitepaper-publish.yaml index f68cada4be..0f89c340e4 100644 --- a/.github/workflows/cactus-whitepaper-publish.yaml +++ b/.github/workflows/cactus-whitepaper-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-whitepaper diff --git a/.github/workflows/cmd-api-server-publish.yaml b/.github/workflows/cmd-api-server-publish.yaml index 7942c31670..10b1d7da24 100644 --- a/.github/workflows/cmd-api-server-publish.yaml +++ b/.github/workflows/cmd-api-server-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-cmd-api-server diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index ff56910852..3254dd3d67 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -9,6 +9,10 @@ on: schedule: - cron: '0 11 * * 1' +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: analyze: name: Analyze diff --git a/.github/workflows/commitlint-pull-request.yml b/.github/workflows/commitlint-pull-request.yml index 0f45478169..32b5775d82 100644 --- a/.github/workflows/commitlint-pull-request.yml +++ b/.github/workflows/commitlint-pull-request.yml @@ -1,6 +1,10 @@ name: "Commit Lint" on: [pull_request] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: commitlint: runs-on: ubuntu-20.04 @@ -8,4 +12,4 @@ jobs: - uses: actions/checkout@v3.1.0 with: fetch-depth: 0 - - uses: wagoid/commitlint-github-action@v3.1.4 \ No newline at end of file + - uses: wagoid/commitlint-github-action@v3.1.4 diff --git a/.github/workflows/connector-besu-publish.yaml b/.github/workflows/connector-besu-publish.yaml index aa5e7f2c82..ad135b491d 100644 --- a/.github/workflows/connector-besu-publish.yaml +++ b/.github/workflows/connector-besu-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-connector-fabric diff --git a/.github/workflows/connector-corda-server-publish.yaml b/.github/workflows/connector-corda-server-publish.yaml index 85de3c7ff7..6fb925d5f2 100644 --- a/.github/workflows/connector-corda-server-publish.yaml +++ b/.github/workflows/connector-corda-server-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-connector-corda-server diff --git a/.github/workflows/connector-fabric-publish.yaml b/.github/workflows/connector-fabric-publish.yaml index 01bae06420..b114b351af 100644 --- a/.github/workflows/connector-fabric-publish.yaml +++ b/.github/workflows/connector-fabric-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-connector-besu diff --git a/.github/workflows/corda-4-6-all-in-one-obligation-publish.yaml b/.github/workflows/corda-4-6-all-in-one-obligation-publish.yaml index 39b0aa34c1..495f83244f 100644 --- a/.github/workflows/corda-4-6-all-in-one-obligation-publish.yaml +++ b/.github/workflows/corda-4-6-all-in-one-obligation-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: corda-4-6-all-in-one-obligation diff --git a/.github/workflows/corda-4-7-all-in-one-obligation-publish.yaml b/.github/workflows/corda-4-7-all-in-one-obligation-publish.yaml index 410672a8f4..c20c3365c9 100644 --- a/.github/workflows/corda-4-7-all-in-one-obligation-publish.yaml +++ b/.github/workflows/corda-4-7-all-in-one-obligation-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-corda-4-7-all-in-one-obligation diff --git a/.github/workflows/corda-4-8-all-in-one-obligation-publish.yaml b/.github/workflows/corda-4-8-all-in-one-obligation-publish.yaml index e3838b8515..81864e5d04 100644 --- a/.github/workflows/corda-4-8-all-in-one-obligation-publish.yaml +++ b/.github/workflows/corda-4-8-all-in-one-obligation-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-corda-4-8-all-in-one-obligation diff --git a/.github/workflows/dependent-issues.yml b/.github/workflows/dependent-issues.yml index f44c9a9228..a2abe50ffb 100644 --- a/.github/workflows/dependent-issues.yml +++ b/.github/workflows/dependent-issues.yml @@ -15,6 +15,10 @@ on: schedule: - cron: '0 0 * * *' # schedule daily check +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: check: runs-on: ubuntu-latest diff --git a/.github/workflows/dev-container-vscode-publish.yaml b/.github/workflows/dev-container-vscode-publish.yaml index 884d6dee54..66dbb1b33c 100644 --- a/.github/workflows/dev-container-vscode-publish.yaml +++ b/.github/workflows/dev-container-vscode-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-dev-container-vscode diff --git a/.github/workflows/example-carbon-accounting-publish.yaml b/.github/workflows/example-carbon-accounting-publish.yaml index 6a231affe4..b1d945db5f 100644 --- a/.github/workflows/example-carbon-accounting-publish.yaml +++ b/.github/workflows/example-carbon-accounting-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-example-carbon-accounting diff --git a/.github/workflows/example-supply-chain-app-publish.yaml b/.github/workflows/example-supply-chain-app-publish.yaml index efe43c3948..c330017e6c 100644 --- a/.github/workflows/example-supply-chain-app-publish.yaml +++ b/.github/workflows/example-supply-chain-app-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-example-supply-chain-app diff --git a/.github/workflows/fabric-all-in-one-publish.yaml b/.github/workflows/fabric-all-in-one-publish.yaml index 76aa37feb3..d9b8a4915a 100644 --- a/.github/workflows/fabric-all-in-one-publish.yaml +++ b/.github/workflows/fabric-all-in-one-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-fabric-all-in-one diff --git a/.github/workflows/fabric2-all-in-one-publish.yaml b/.github/workflows/fabric2-all-in-one-publish.yaml index c3e292baac..e5670feb30 100644 --- a/.github/workflows/fabric2-all-in-one-publish.yaml +++ b/.github/workflows/fabric2-all-in-one-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-fabric2-all-in-one diff --git a/.github/workflows/ghpkg-all-kotlin-api-clients-publish.yaml b/.github/workflows/ghpkg-all-kotlin-api-clients-publish.yaml index ee1080c1a7..fc23b20b80 100644 --- a/.github/workflows/ghpkg-all-kotlin-api-clients-publish.yaml +++ b/.github/workflows/ghpkg-all-kotlin-api-clients-publish.yaml @@ -7,6 +7,10 @@ on: pull_request: branches: [main, dev] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: publish: runs-on: ubuntu-20.04 diff --git a/.github/workflows/iroha-all-in-one-publish.yaml b/.github/workflows/iroha-all-in-one-publish.yaml index bb1de37d6a..0d20e67928 100644 --- a/.github/workflows/iroha-all-in-one-publish.yaml +++ b/.github/workflows/iroha-all-in-one-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-iroha-all-in-one diff --git a/.github/workflows/iroha2-all-in-one-publish.yaml b/.github/workflows/iroha2-all-in-one-publish.yaml index 815813e1da..5df61354e4 100644 --- a/.github/workflows/iroha2-all-in-one-publish.yaml +++ b/.github/workflows/iroha2-all-in-one-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-iroha2-all-in-one diff --git a/.github/workflows/keychain-vault-server-publish.yaml b/.github/workflows/keychain-vault-server-publish.yaml index e7b7b483fb..fd87fac86b 100644 --- a/.github/workflows/keychain-vault-server-publish.yaml +++ b/.github/workflows/keychain-vault-server-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-keychain-vault-server diff --git a/.github/workflows/publish-npm.yaml b/.github/workflows/publish-npm.yaml index f145901402..c1b274a4f6 100644 --- a/.github/workflows/publish-npm.yaml +++ b/.github/workflows/publish-npm.yaml @@ -8,6 +8,10 @@ on: description: Tag to publish required: true +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: build-and-publish-packages: diff --git a/.github/workflows/quorum-all-in-one-publish.yaml b/.github/workflows/quorum-all-in-one-publish.yaml index 7a14f2c69c..d49344d567 100644 --- a/.github/workflows/quorum-all-in-one-publish.yaml +++ b/.github/workflows/quorum-all-in-one-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-quorum-all-in-one diff --git a/.github/workflows/quorum-multi-party-all-in-one-publish.yaml b/.github/workflows/quorum-multi-party-all-in-one-publish.yaml index 6215b821d7..bdcf4a8905 100644 --- a/.github/workflows/quorum-multi-party-all-in-one-publish.yaml +++ b/.github/workflows/quorum-multi-party-all-in-one-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-quorum-multi-party-all-in-one diff --git a/.github/workflows/rust-compiler-publish.yaml b/.github/workflows/rust-compiler-publish.yaml index 2c619244a9..fc98446cd7 100644 --- a/.github/workflows/rust-compiler-publish.yaml +++ b/.github/workflows/rust-compiler-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-rust-compiler diff --git a/.github/workflows/sawtooth-all-in-one-publish.yaml b/.github/workflows/sawtooth-all-in-one-publish.yaml index 7693b69a66..fc5b0cf5be 100644 --- a/.github/workflows/sawtooth-all-in-one-publish.yaml +++ b/.github/workflows/sawtooth-all-in-one-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-sawtooth-all-in-one diff --git a/.github/workflows/semantic-pull-request.yaml b/.github/workflows/semantic-pull-request.yaml index 66025f9b9c..f9cda8e4f9 100644 --- a/.github/workflows/semantic-pull-request.yaml +++ b/.github/workflows/semantic-pull-request.yaml @@ -7,6 +7,10 @@ on: - edited - synchronize +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: main: name: Validate PR title diff --git a/.github/workflows/test-npm-registry-publish.yaml b/.github/workflows/test-npm-registry-publish.yaml index ccaaf9ab42..31c0eda4f0 100644 --- a/.github/workflows/test-npm-registry-publish.yaml +++ b/.github/workflows/test-npm-registry-publish.yaml @@ -10,6 +10,10 @@ on: tags: - v* +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + env: IMAGE_NAME: cactus-test-npm-registry diff --git a/.github/workflows/test_weaver-asset-exchange-besu.yml b/.github/workflows/test_weaver-asset-exchange-besu.yml index dedc4e5eee..dcf219fe59 100644 --- a/.github/workflows/test_weaver-asset-exchange-besu.yml +++ b/.github/workflows/test_weaver-asset-exchange-besu.yml @@ -13,6 +13,10 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: diff --git a/.github/workflows/test_weaver-asset-exchange-corda.yml b/.github/workflows/test_weaver-asset-exchange-corda.yml index c52991824e..6fa06798d4 100644 --- a/.github/workflows/test_weaver-asset-exchange-corda.yml +++ b/.github/workflows/test_weaver-asset-exchange-corda.yml @@ -17,6 +17,10 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: diff --git a/.github/workflows/test_weaver-asset-exchange-fabric.yml b/.github/workflows/test_weaver-asset-exchange-fabric.yml index 6645398f62..36704ba9d8 100644 --- a/.github/workflows/test_weaver-asset-exchange-fabric.yml +++ b/.github/workflows/test_weaver-asset-exchange-fabric.yml @@ -17,6 +17,10 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: diff --git a/.github/workflows/test_weaver-asset-transfer.yml b/.github/workflows/test_weaver-asset-transfer.yml index f27cb53c39..71914dcd4b 100644 --- a/.github/workflows/test_weaver-asset-transfer.yml +++ b/.github/workflows/test_weaver-asset-transfer.yml @@ -17,6 +17,10 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: fabric-asset-transfer: diff --git a/.github/workflows/test_weaver-corda-interop-app.yml b/.github/workflows/test_weaver-corda-interop-app.yml index 496a5db4c1..f3abdba75c 100644 --- a/.github/workflows/test_weaver-corda-interop-app.yml +++ b/.github/workflows/test_weaver-corda-interop-app.yml @@ -13,6 +13,10 @@ on: pull_request: branches: [ main ] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: test_local: runs-on: ubuntu-latest diff --git a/.github/workflows/test_weaver-data-sharing.yml b/.github/workflows/test_weaver-data-sharing.yml index 7cf591a978..da2204b0f4 100644 --- a/.github/workflows/test_weaver-data-sharing.yml +++ b/.github/workflows/test_weaver-data-sharing.yml @@ -17,6 +17,10 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: data-sharing: diff --git a/.github/workflows/test_weaver-docker-build.yml b/.github/workflows/test_weaver-docker-build.yml index f470148afa..09c9ece7b6 100644 --- a/.github/workflows/test_weaver-docker-build.yml +++ b/.github/workflows/test_weaver-docker-build.yml @@ -10,6 +10,10 @@ on: pull_request: branches: [ main ] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: relay: # if: ${{ false }} diff --git a/.github/workflows/test_weaver-go.yml b/.github/workflows/test_weaver-go.yml index 32097ee772..4c00899502 100644 --- a/.github/workflows/test_weaver-go.yml +++ b/.github/workflows/test_weaver-go.yml @@ -10,6 +10,10 @@ on: pull_request: branches: [ main ] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: test_interopcc: runs-on: ubuntu-latest diff --git a/.github/workflows/test_weaver-node-pkgs.yml b/.github/workflows/test_weaver-node-pkgs.yml index 3564d9a202..40055fbf07 100644 --- a/.github/workflows/test_weaver-node-pkgs.yml +++ b/.github/workflows/test_weaver-node-pkgs.yml @@ -13,6 +13,10 @@ on: pull_request: branches: [ main ] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: node_sdk_local: diff --git a/.github/workflows/test_weaver-relay.yml b/.github/workflows/test_weaver-relay.yml index 3d4d1c97f7..3036435b8b 100644 --- a/.github/workflows/test_weaver-relay.yml +++ b/.github/workflows/test_weaver-relay.yml @@ -10,6 +10,10 @@ on: pull_request: branches: [ main ] +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true + jobs: relay-local: # if: ${{ false }} @@ -97,4 +101,4 @@ jobs: echo "Waiting for Dummy Relay and Driver to come up" sleep 30 cargo run --bin client 9085 localhost:9085/Dummy_Network/abc:abc:abc:abc - working-directory: weaver/core/relay \ No newline at end of file + working-directory: weaver/core/relay