Skip to content

Commit c7cf8df

Browse files
committed
feat(checkpoint-sync): use env vars for beacon node URLs in action
1 parent f52ea2a commit c7cf8df

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,16 @@ runs:
2727
docker build . -t ethpandaops/checkpointz:local;
2828
- name: Configure checkpointz
2929
shell: bash
30+
env:
31+
MAINNET_BEACON_API_URL: "${{ secrets.MAINNET_BEACON_API_URL }}"
32+
HOLESKY_BEACON_API_URL: "${{ secrets.HOLESKY_BEACON_API_URL }}"
33+
3034
run: |
3135
beacon_node=""
3236
if [[ ${{ inputs.network }} == "mainnet" ]]; then
33-
beacon_node="{{ $secrets.MAINNET_BEACON_API_URL }}"
37+
beacon_node="${{ env.MAINNET_BEACON_API_URL }}"
3438
elif [[ ${{ inputs.network }} == "holesky" ]]; then
35-
beacon_node="{{ $secrets.HOLESKY_BEACON_API_URL }}"
39+
beacon_node="${{ env.HOLESKY_BEACON_API_URL }}"
3640
else
3741
echo "Unsupported network: ${{ inputs.network }}"
3842
exit 1

0 commit comments

Comments
 (0)