Skip to content

Commit cd9b8b2

Browse files
committed
add debug workflow
1 parent d1ac959 commit cd9b8b2

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/debug.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: debug
2+
on: push
3+
4+
jobs:
5+
debug:
6+
runs-on: self-hosted
7+
8+
steps:
9+
- uses: actions/checkout@v3
10+
11+
- name: Use Node.js
12+
uses: actions/setup-node@v3
13+
with:
14+
node-version: '20.x'
15+
16+
- name: Install Foundry
17+
uses: foundry-rs/foundry-toolchain@v1
18+
with:
19+
version: nightly
20+
21+
- name: Set ENV Parameters
22+
run: |
23+
echo ES_NODE_CONTRACT_ADDRESS=`cat ../storage-contracts-v1/.caddr` >> "$GITHUB_ENV"
24+
echo ES_NODE_UPLOADER_PRIVATE_KEY=`cat ../uploader.key` >> "$GITHUB_ENV"
25+
echo ES_NODE_STORAGE_MINER=0x5C935469C5592Aeeac3372e922d9bCEabDF8830d >> "$GITHUB_ENV"
26+
27+
- name: Set Miner To Whitelist
28+
run: |
29+
cast send -r 'http://5.9.87.214:8545' --private-key $ES_NODE_UPLOADER_PRIVATE_KEY $ES_NODE_CONTRACT_ADDRESS "grantMinerRole(address)" $ES_NODE_STORAGE_MINER

0 commit comments

Comments
 (0)