Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev committed Nov 18, 2023
1 parent d6959be commit e99dc08
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,15 @@ jobs:
status_check=$(echo "$response" | jq -e '.block_id.hash' &>
/dev/null && echo "true" || echo "false")
elif [ "$type" = "tendermint-ws" ]; then
response=$(echo '{ "jsonrpc": "2.0", "method": "subscribe", "params": ["tm.event='\'NewBlock'\'"], "id": 1 }' | $websocat_path -t -1 "$url")
status_check=$(echo "$response" | jq -e '.result' &> /dev/null && echo "true" || echo "false")
fi
response=$($websocat_path -t -1 "$url" <<'EOF'
{ "jsonrpc": "2.0", "method": "subscribe", "params": ["tm.event='NewBlock'"], "id": 1 }
EOF
)
status_check=$(echo "$response" | jq -e '.result' &> /dev/null && echo "true" || echo "false")
else
echo "⏭️ Skipping unsupported endpoint type: $type"
status_check="skip"
fi
echo "⏭️ Skipping unsupported endpoint type: $type"
status_check="skip"
fi

if [ "$status_check" = "true" ]; then
echo "✅ $url - Successful"
Expand Down

0 comments on commit e99dc08

Please sign in to comment.