File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 8787 commands :
8888 - cd environments
8989 - |
90- ADDRESS=` jq -r '.contractAddress'`
91- BLOCK=$(grep -o '" blockNumber":[0-9]* ' ../packages/smart-contract/ignition/deployments/chain-134/journal.jsonl | tail -1 | cut -d':' -f2 )
90+ ADDRESS=$( jq -r '.contractAddress' ../packages/smart-contract/ignition/deployments/chain-134/journal.jsonl | tail -1)
91+ BLOCK=$(jq -r '. blockNumber' ../packages/smart-contract/ignition/deployments/chain-134/journal.jsonl | tail -1)
9292 KEY=dataprotectorContractAddress VALUE=$ADDRESS npm run update-env
9393 KEY=dataprotectorStartBlock VALUE=$BLOCK npm run update-env
9494 - git add environments.json
@@ -104,8 +104,8 @@ steps:
104104 commands :
105105 - cd environments
106106 - |
107- ADDRESS=$(grep -o '" contractAddress":"[^"]* ' ../packages/smart-contract/ignition/deployments/chain-134/journal.json | tail -1 | cut -d'"' -f4 )
108- BLOCK=$(grep -o '" blockNumber":[0-9]* ' ../packages/smart-contract/ignition/deployments/chain-134/journal.json | tail -1 | cut -d':' -f2 )
107+ ADDRESS=$(jq -r '. contractAddress' ../packages/smart-contract/ignition/deployments/chain-134/journal.json | tail -1)
108+ BLOCK=$(jq -r '. blockNumber' ../packages/smart-contract/ignition/deployments/chain-134/journal.json | tail -1)
109109 KEY=dataprotectorContractAddress VALUE=$ADDRESS npm run update-env
110110 KEY=dataprotectorStartBlock VALUE=$BLOCK npm run update-env
111111 - git add environments.json
You can’t perform that action at this time.
0 commit comments