Skip to content

Commit

Permalink
feat(checkpoint-sync): use env vars for beacon node URLs in action
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Feb 21, 2025
1 parent f52ea2a commit c7cf8df
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/actions/checkpoint-sync/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,16 @@ runs:
docker build . -t ethpandaops/checkpointz:local;
- name: Configure checkpointz
shell: bash
env:
MAINNET_BEACON_API_URL: "${{ secrets.MAINNET_BEACON_API_URL }}"
HOLESKY_BEACON_API_URL: "${{ secrets.HOLESKY_BEACON_API_URL }}"

run: |
beacon_node=""
if [[ ${{ inputs.network }} == "mainnet" ]]; then
beacon_node="{{ $secrets.MAINNET_BEACON_API_URL }}"
beacon_node="${{ env.MAINNET_BEACON_API_URL }}"
elif [[ ${{ inputs.network }} == "holesky" ]]; then
beacon_node="{{ $secrets.HOLESKY_BEACON_API_URL }}"
beacon_node="${{ env.HOLESKY_BEACON_API_URL }}"
else
echo "Unsupported network: ${{ inputs.network }}"
exit 1
Expand Down

0 comments on commit c7cf8df

Please sign in to comment.