Skip to content

Commit 339fa96

Browse files
committed
fix: move concurrency settings to deploy job for better organization
1 parent 5cec6af commit 339fa96

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ on:
1515
- arbitrum
1616
default: 'anvil'
1717

18-
concurrency:
19-
group: deploy-${{ inputs.network }}
20-
cancel-in-progress: true
21-
2218
jobs:
2319

2420
# Build and test before deploying.
@@ -27,11 +23,15 @@ jobs:
2723
with:
2824
SEPOLIA_RPC_URL: ${{ vars.SEPOLIA_RPC_URL }}
2925
ARBITRUM_SEPOLIA_RPC_URL: ${{ vars.ARBITRUM_SEPOLIA_RPC_URL }}
26+
network: ${{ inputs.network }}
3027

3128
# Deploy and verify contract.
3229
deploy:
3330
needs: build-and-test
3431
runs-on: ubuntu-latest
32+
concurrency:
33+
group: deploy-${{ inputs.network }}
34+
cancel-in-progress: true
3535
env:
3636
CI: true
3737
permissions:

.github/workflows/main.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ on:
1010
ARBITRUM_SEPOLIA_RPC_URL:
1111
required: true
1212
type: string
13+
network:
14+
required: false
15+
type: string
16+
default: ''
1317

1418
concurrency:
15-
group: ${{ github.ref }}-ci
19+
group: ${{ github.ref }}-ci${{ inputs.network || '' }}
1620
cancel-in-progress: true
1721

1822
env:

0 commit comments

Comments
 (0)