Skip to content

Commit a2585e9

Browse files
committed
feat: strip trailing slash from beacon node URL in checkpoint sync
fix(integration.yaml): set beacon_node_url to MAINNET_BEACON_API_URL
1 parent 5852cd5 commit a2585e9

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/actions/checkpoint-sync/action.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ runs:
2929
- name: Configure checkpointz
3030
shell: bash
3131
run: |
32+
# Strip trailing slash from the beacon node URL
33+
beacon_node_url="${{ inputs.beacon_node_url }}"
34+
if [[ "$beacon_node_url" == *"/" ]]; then
35+
beacon_node_url="${beacon_node_url%/}"
36+
fi
3237
cat <<EOF > checkpointz.yaml
3338
global:
3439
listenAddr: ":5555"
@@ -37,7 +42,7 @@ runs:
3742
beacon:
3843
upstreams:
3944
- name: state-provider
40-
address: ${{ inputs.beacon_node_url }}
45+
address: "${beacon_node_url}"
4146
timeoutSeconds: 30
4247
dataProvider: true
4348
checkpointz:

.github/workflows/integration.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
with:
3232
consensus: ${{ matrix.consensus }}
3333
network: ${{ matrix.network }}
34-
beacon_node_url: ${{ matrix.network == 'mainnet' && env.MAINNET_BEACON_API_URL || env.HOLESKY_BEACON_API_URL }}
34+
beacon_node_url: ${{ env.MAINNET_BEACON_API_URL }}

0 commit comments

Comments
 (0)