diff --git a/.github/workflows/finalize-round.yml b/.github/workflows/finalize-round.yml index 3c5975cb4..e84353988 100644 --- a/.github/workflows/finalize-round.yml +++ b/.github/workflows/finalize-round.yml @@ -10,7 +10,6 @@ on: env: NODE_VERSION: 20.x - NETWORK: "arbitrum-sepolia" COORDINATOR_MACISK: ${{ secrets.ARBITRUM_GOERLI_COORDINATOR_MACI_PRIVATE_KEY }} WALLET_PRIVATE_KEY: ${{ secrets.ARBITRUM_GOERLI_COORDINATOR_WALLET_PRIVATE_KEY }} CIRCUIT_TYPE: micro @@ -61,6 +60,10 @@ jobs: run: | export SUBGRPAH_URL="https://api.thegraph.com/subgraphs/name/${{ github.event.inputs.subgraph_name }}" echo $SUBGRAPH_URL + export SUBGRAPH_NAME=${{ github.event.inputs.subgraph_name }} + export CHAIN_QUERY=$(node -e 'console.log(`{"query":"{indexingStatusForCurrentVersion(subgraphName: \\\"${process.env.SUBGRAPH_NAME}\\\") { chains { network }}}"}`)') + export CHAIN=$(curl -s -X POST -d '{"query":"{indexingStatusForCurrentVersion(subgraphName:) { chains { network }}}"}' https://api.thegraph.com/index-node/graphql) + export NETWORK=$(node -e 'console.log(JSON.parse(process.env.CHAIN).data.indexingStatusForCurrentVersion.chains[0].network)') export ROUND=$(curl -X POST -d '{"query":"{clrFunds {id currentRound {id maci maciTxHash}}}"}' $SUBGRPAH_URL) export CLRFUND_ADDRESS=$(node -e 'console.log(JSON.parse(process.env.ROUND).data.clrFunds[0].id)') export ROUND_ADDRESS=$(node -e 'console.log(JSON.parse(process.env.ROUND).data.clrFunds[0].currentRound.id)')