Skip to content

Commit

Permalink
chore: Update shell script for endpoint checking
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Jun 20, 2024
1 parent 1724ec2 commit 058935f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/actions/checkpoint-sync/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ runs:
- name: Manually check endpoints
shell: bash
run: |
set +e
check_endpoint() {
local path=$1
local accept_header=$2
Expand All @@ -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
Expand Down

0 comments on commit 058935f

Please sign in to comment.