Skip to content

Commit b36940d

Browse files
committed
feat: update bridge configuration to correctly associate environments with network types
1 parent 18086f3 commit b36940d

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/configure-bridges.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,22 @@ jobs:
1818
strategy:
1919
matrix:
2020
include:
21-
- environment: testnets
21+
- environment: sepolia
2222
source_chain: sepolia
2323
target_chain: arbitrum_sepolia
24-
- environment: testnets
24+
network_type: testnets
25+
- environment: arbitrum_sepolia
2526
source_chain: arbitrum_sepolia
2627
target_chain: sepolia
27-
- environment: mainnets
28+
network_type: testnets
29+
- environment: ethereum
2830
source_chain: ethereum
2931
target_chain: arbitrum
30-
- environment: mainnets
32+
network_type: mainnets
33+
- environment: arbitrum
3134
source_chain: arbitrum
3235
target_chain: ethereum
36+
network_type: mainnets
3337
fail-fast: false
3438
concurrency:
3539
group: configure-bridges-${{ matrix.source_chain }}-${{ matrix.target_chain }}
@@ -49,7 +53,7 @@ jobs:
4953
cache: true
5054

5155
- name: Configure bridge from ${{ matrix.source_chain }} to ${{ matrix.target_chain }}
52-
if: matrix.environment == github.event.inputs.network_type
56+
if: matrix.network_type == github.event.inputs.network_type
5357
env:
5458
ADMIN_PRIVATE_KEY: ${{ secrets.ADMIN_PRIVATE_KEY }}
5559
SOURCE_CHAIN: ${{ matrix.source_chain }}
@@ -59,7 +63,7 @@ jobs:
5963
run: make configure-bridge
6064

6165
- name: Save bridge configuration artifacts
62-
if: matrix.environment == github.event.inputs.network_type
66+
if: matrix.network_type == github.event.inputs.network_type
6367
uses: stefanzweifel/git-auto-commit-action@v5
6468
with:
6569
commit_message: 'chore: save bridge configuration artifacts for ${{ matrix.source_chain }}→${{ matrix.target_chain }} (run: ${{ github.run_id }})'

0 commit comments

Comments
 (0)