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 36c665d commit 617574c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ jobs:
status_check=$(echo "$response" | jq -e '.block_id.hash' &>
/dev/null && echo "true" || echo "false")
elif [ "$type" = "tendermint-ws" ]; then
response=$($websocat_path -t -1 "$url" <<'EOF'
response=$($websocat_path -t -1 "$url" <<'EOF'
{ "jsonrpc": "2.0", "method": "subscribe", "params": ["tm.event='NewBlock'"], "id": 1 }
EOF
EOF
)
status_check=$(echo "$response" | jq -e '.result' &> /dev/null && echo "true" || echo "false")
status_check=$(echo "$response" | jq -e '.result' &> /dev/null && echo "true" || echo "false")
else
echo "⏭️ Skipping unsupported endpoint type: $type"
status_check="skip"
echo "⏭️ Skipping unsupported endpoint type: $type"
status_check="skip"
fi
if [ "$status_check" = "true" ]; then
Expand Down

0 comments on commit 617574c

Please sign in to comment.