-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
running the init command within a screen session to solve key generat…
…ions bug
- Loading branch information
1 parent
577b8c8
commit aba2b9b
Showing
1 changed file
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,11 +22,21 @@ jobs: | |
go-version: 1.19.10 | ||
- run: git config --global url.https://[email protected]/.insteadOf https://github.com/ | ||
|
||
- name: Init a local rollapp | ||
- name: Init a local rollapp within screen | ||
run: | | ||
rm -rf $ROLLER_CONFIG_PATH | ||
echo "Executing: go run . config init --home $ROLLER_CONFIG_PATH --da mock $ROLLAPP_ID RAX --hub local --no-output" | ||
go run . config init --home $ROLLER_CONFIG_PATH --da mock $ROLLAPP_ID RAX --hub local --no-output < /dev/null | ||
# Start a new detached screen session named "rollapp_init" | ||
screen -dmS rollapp_init | ||
# Send the commands to be executed in the screen session | ||
screen -S rollapp_init -X stuff "rm -rf $ROLLER_CONFIG_PATH\n" | ||
screen -S rollapp_init -X stuff "echo 'Executing: go run . config init --home $ROLLER_CONFIG_PATH --da mock $ROLLAPP_ID RAX --hub local --no-output'\n" | ||
screen -S rollapp_init -X stuff "go run . config init --home $ROLLER_CONFIG_PATH --da mock $ROLLAPP_ID RAX --hub local --no-output\n" | ||
# Wait a bit for the command to execute. Adjust this sleep time as necessary | ||
sleep 10 | ||
# Kill the screen session after the command is done | ||
screen -S rollapp_init -X quit | ||
- name: Fund the RollApp addresses | ||
run: | | ||
|