Skip to content

Commit 514b718

Browse files
authored
Fix update-network action to handle network names with spaces (#893)
* Update update-network.yml * Update addNetwork.ts
1 parent f69bbb0 commit 514b718

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/update-network.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
node-version: '16.10.0'
5555
- name: Add new network
5656
run: |
57-
node scripts/addNetwork.ts ${{ inputs.chainid }} ${{ inputs.explorer }} ${{ inputs.multicall }} ${{ inputs.start }} ${{ inputs.logo }} ${{ inputs.networkname }} ${{ inputs.shortname }} ${{ inputs.testnet }}
57+
node scripts/addNetwork.ts ${{ inputs.chainid }} ${{ inputs.explorer }} ${{ inputs.multicall }} ${{ inputs.start }} ${{ inputs.logo }} "${{ inputs.networkname }}" ${{ inputs.shortname }} ${{ inputs.testnet }}
5858
- name: Update minor
5959
run: |
6060
npm --no-git-tag-version version patch

scripts/addNetwork.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const { getAddress } = require('@ethersproject/address');
33

44
if (process.argv.length < 7) {
55
console.log(
6-
'Usage: ts-node scripts/addNetwork.ts <chainId> <explorer> <multicall> <start> <logo> <networkName> <shortName> <testnet (optional)>'
6+
'Usage: ts-node scripts/addNetwork.ts <chainId> <explorer> <multicall> <start> <logo> "<networkName>" <shortName> <testnet (optional)>'
77
);
88
process.exit(1);
99
}

0 commit comments

Comments
 (0)