Skip to content

Commit

Permalink
update cancel job
Browse files Browse the repository at this point in the history
  • Loading branch information
yuetloo committed Feb 3, 2024
1 parent 535d421 commit 1ccd1eb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/cancel-round.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ on: workflow_dispatch

env:
NODE_VERSION: 18.x
SUBGRPAH_URL: "https://api.thegraph.com/subgraphs/name/clrfund/clrfund-arbitrum-goerli"
SUBGRPAH_URL: "https://api.thegraph.com/subgraphs/name/clrfund/clrfund-testnet"
WALLET_PRIVATE_KEY: ${{ secrets.ARBITRUM_GOERLI_COORDINATOR_WALLET_PRIVATE_KEY }}
NETWORK: "arbitrum-sepolia"

jobs:
cancel-round:
Expand All @@ -25,6 +26,6 @@ jobs:
- name: Run the cancel round script
run: |
cd contracts
export FACTORY=$(curl -X POST -d '{"query":"{fundingRoundFactories {id}}"}' $SUBGRPAH_URL)
export FACTORY_ADDRESS=$(node -e 'console.log(JSON.parse(process.env.FACTORY).data.fundingRoundFactories[0].id)')
yarn hardhat cancel-round --factory ${FACTORY_ADDRESS} --network arbitrum-goerli
export CLRFUND=$(curl -X POST -d '{"query":"{clrFunds {id}}"}' $SUBGRPAH_URL)
export CLRFUND_ADDRESS=$(node -e 'console.log(JSON.parse(process.env.CLRFUND).data.clrfunds[0].id)')
yarn hardhat clr-cancel --clrfund ${CLRFUND_ADDRESS} --network ${NETWORK}

0 comments on commit 1ccd1eb

Please sign in to comment.