Skip to content

Commit

Permalink
ci: add expect script
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepakBomjan committed Jul 10, 2023
1 parent 68c476a commit 37b885e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/testnet-deploy-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ jobs:
echo "Installing expect"
sudo apt-get update >/dev/null
sudo apt-get install expect >/dev/null
echo $CONSTANTINE_TESTNET_KEY | base64 -d > key.json
echo "$CONSTANTINE_PASSPHRASE" | /home/runner/go/bin/archwayd keys import constantine3_wallet key.json
echo $CONSTANTINE_TESTNET_KEY | base64 -d > temp.key
bash ./scripts/import_key.expect
echo "$CONSTANTINE_PASSPHRASE" | /home/runner/go/bin/archwayd keys import constantine3_wallet temp.key
# which expect
# /usr/bin/expect <<EOD
# set timeout 60
Expand Down
8 changes: 8 additions & 0 deletions scripts/import_key.expect
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
which expect
/usr/bin/expect <<EOD
set timeout 60
spawn archwayd keys import constantine3_wallet temp.key
expect "Enter passphrase to decrypt your key:"
send "12345678\r"
expect eof
EOD

0 comments on commit 37b885e

Please sign in to comment.