From d6959bea5c9ad61b9eaaec81d0ea18476da0fd35 Mon Sep 17 00:00:00 2001 From: Denis Fadeev Date: Sat, 18 Nov 2023 15:50:58 +0300 Subject: [PATCH] websocat --- .github/workflows/api.yaml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/api.yaml b/.github/workflows/api.yaml index 935761e..ed09ee9 100644 --- a/.github/workflows/api.yaml +++ b/.github/workflows/api.yaml @@ -9,12 +9,12 @@ jobs: artifact-path: ${{ steps.setup.outputs.artifact-path }} steps: - uses: actions/checkout@v2 - - name: Install websocat + - name: Download websocat id: setup run: | - sudo apt-get update - sudo apt-get install -y websocat - echo "::set-output name=artifact-path::$(which websocat)" + wget https://github.com/vi/websocat/releases/download/v1.8.0/websocat_amd64-linux -O websocat + chmod +x websocat + echo "::set-output name=artifact-path::$(pwd)/websocat" generate-matrix: needs: setup-websocat @@ -62,7 +62,7 @@ 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 "$url") + 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