From 058935f93cfe9451ff1f90decf9f42640c5de5ef Mon Sep 17 00:00:00 2001 From: Sam Calder-Mason Date: Thu, 20 Jun 2024 12:37:25 +1000 Subject: [PATCH] chore: Update shell script for endpoint checking --- .github/actions/checkpoint-sync/action.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/actions/checkpoint-sync/action.yaml b/.github/actions/checkpoint-sync/action.yaml index be929ec..93ea1d6 100644 --- a/.github/actions/checkpoint-sync/action.yaml +++ b/.github/actions/checkpoint-sync/action.yaml @@ -89,6 +89,7 @@ runs: - name: Manually check endpoints shell: bash run: | + set +e check_endpoint() { local path=$1 local accept_header=$2 @@ -107,6 +108,8 @@ runs: echo "Failed $fails times, retrying..." sleep 1; fi + fails=$((fails+1)) + echo "Checking endpoint /eth/v2/beacon/blocks/genesis with accept header application/json..." genesis_block=$(check_endpoint "/eth/v2/beacon/blocks/genesis" "application/json") [[ $? -ne 0 ]] && continue