Skip to content

Commit 2f48afa

Browse files
ci: pass whitelist network via env vars
1 parent 1d953b8 commit 2f48afa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/dapp-deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ jobs:
142142
RPC_URL: ${{ secrets.RPC_URL }}
143143
run: |
144144
cd node_modules/whitelist-smart-contract
145-
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address) && npm run addResourceToWhitelist
145+
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address)
146+
npm run addResourceToWhitelist -- --network ${{ vars.WHITELIST_NETWORK_NAME }}
146147
147148
- name: Configure ENS
148149
if: ${{ vars.DAPP_ENS_NAME }}

.github/workflows/dapp-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ jobs:
127127
RPC_URL: ${{ secrets.RPC_URL }}
128128
run: |
129129
cd node_modules/whitelist-smart-contract
130-
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address) && npm run addResourceToWhitelist
130+
export ADDRESS_TO_ADD=$(cat ../../deployment-dapp/.app-address)
131+
npm run addResourceToWhitelist -- --network ${{ vars.WHITELIST_NETWORK_NAME }}
131132
132133
- name: Configure ENS
133134
if: ${{ vars.DAPP_ENS_NAME }}

0 commit comments

Comments
 (0)