From e1cdfc81c1d1554d16022026193588a1111ae908 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eike=20Ha=C3=9F?= Date: Wed, 23 Apr 2025 15:13:11 +0200 Subject: [PATCH 1/3] fix quoting --- .github/actions/iota-rebase-sandbox/load-keytool/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/iota-rebase-sandbox/load-keytool/action.yml b/.github/actions/iota-rebase-sandbox/load-keytool/action.yml index 1affa7faec..9a0e02e5e2 100644 --- a/.github/actions/iota-rebase-sandbox/load-keytool/action.yml +++ b/.github/actions/iota-rebase-sandbox/load-keytool/action.yml @@ -47,6 +47,6 @@ runs: if [ ${{inputs.faucet}} == "true" ]; then iota client faucet # wait up tp 5min for Gas to be available - timeout 5m bash -c "until [ $(iota client gas --json | jq -r '.[].nanosBalance') -gt 0 ]; do sleep 10; done" + timeout 5m bash -c "until [ \"$(iota client gas --json | jq -r '.[].nanosBalance')\" -gt \"0\" ]; do sleep 10; done" fi From 316652eed519d0c20e194a3c16191d8567bcf42d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eike=20Ha=C3=9F?= Date: Wed, 23 Apr 2025 15:21:57 +0200 Subject: [PATCH 2/3] add debug log --- .github/actions/iota-rebase-sandbox/load-keytool/action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/iota-rebase-sandbox/load-keytool/action.yml b/.github/actions/iota-rebase-sandbox/load-keytool/action.yml index 9a0e02e5e2..b0e014e3d5 100644 --- a/.github/actions/iota-rebase-sandbox/load-keytool/action.yml +++ b/.github/actions/iota-rebase-sandbox/load-keytool/action.yml @@ -47,6 +47,8 @@ runs: if [ ${{inputs.faucet}} == "true" ]; then iota client faucet # wait up tp 5min for Gas to be available + echo $(iota client gas --json | jq -r '.[].nanosBalance') + (( $(iota client gas --json | jq -r '.[].nanosBalance') > 0 )) && echo $? timeout 5m bash -c "until [ \"$(iota client gas --json | jq -r '.[].nanosBalance')\" -gt \"0\" ]; do sleep 10; done" fi From fb5b6e024bc1555105e59d02d79a2ddb557f6a9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eike=20Ha=C3=9F?= Date: Wed, 23 Apr 2025 15:25:28 +0200 Subject: [PATCH 3/3] add log --- .github/actions/iota-rebase-sandbox/load-keytool/action.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/iota-rebase-sandbox/load-keytool/action.yml b/.github/actions/iota-rebase-sandbox/load-keytool/action.yml index b0e014e3d5..f40abe04fb 100644 --- a/.github/actions/iota-rebase-sandbox/load-keytool/action.yml +++ b/.github/actions/iota-rebase-sandbox/load-keytool/action.yml @@ -44,6 +44,8 @@ runs: iota client switch --env ${{inputs.network}} iota client switch --address deploy-key + iota keytool list + if [ ${{inputs.faucet}} == "true" ]; then iota client faucet # wait up tp 5min for Gas to be available