Skip to content

Commit

Permalink
pipelines pt2
Browse files Browse the repository at this point in the history
  • Loading branch information
twoshark committed Nov 15, 2023
1 parent f8d46d1 commit 719fdbc
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ jobs:
name: Check Sepolia RPC Endpoints
command: |
TIME_DIFF_THRESHOLD="<< parameters.time_diff_threshold >>"
if ops/verify_geth_endpoint.sh "<< parameters.l1_sepolia_rpc_url >>" $TIME_DIFF_THRESHOLD && \
ops/verify_geth_endpoint.sh "<< parameters.l2_sepolia_rpc_url >>" $TIME_DIFF_THRESHOLD; then
if ops/verify_geth_endpoint.sh "<< pipeline.parameters.l1_sepolia_rpc_url >>" $TIME_DIFF_THRESHOLD && \
ops/verify_geth_endpoint.sh "<< pipeline.parameters.l2_sepolia_rpc_url >>" $TIME_DIFF_THRESHOLD; then
echo "Both RPC endpoints are up to date and not syncing."
echo "<< parameters.l1_sepolia_rpc_url >>" > /tmp/l1_sepolia_rpc_url
echo "<< parameters.l2_sepolia_rpc_url >>" > /tmp/l2_sepolia_rpc_url
echo "<< pipeline.parameters.l1_sepolia_rpc_url >>" > /tmp/l1_sepolia_rpc_url
echo "<< pipeline.parameters.l2_sepolia_rpc_url >>" > /tmp/l2_sepolia_rpc_url
else
echo "One or both of the RPC endpoints failed the checks."
exit 1
Expand All @@ -56,11 +56,11 @@ jobs:
name: Check Goerli RPC Endpoints
command: |
TIME_DIFF_THRESHOLD="<< parameters.time_diff_threshold >>"
if ops/verify_geth_endpoint.sh "<< parameters.l1_goerli_rpc_url >>" $TIME_DIFF_THRESHOLD && \
ops/verify_geth_endpoint.sh "<< parameters.l2_goerli_rpc_url >>" $TIME_DIFF_THRESHOLD; then
if ops/verify_geth_endpoint.sh "<< pipeline.parameters.l1_goerli_rpc_url >>" $TIME_DIFF_THRESHOLD && \
ops/verify_geth_endpoint.sh "<< pipeline.parameters.l2_goerli_rpc_url >>" $TIME_DIFF_THRESHOLD; then
echo "Both RPC endpoints are up to date and not syncing."
echo "<< parameters.l1_goerli_rpc_url >>" > /tmp/l1_goerli_rpc_url
echo "<< parameters.l2_goerli_rpc_url >>" > /tmp/l2_goerli_rpc_url
echo "<< pipeline.parameters.l1_goerli_rpc_url >>" > /tmp/l1_goerli_rpc_url
echo "<< pipeline.parameters.l2_goerli_rpc_url >>" > /tmp/l2_goerli_rpc_url
else
echo "One or both of the RPC endpoints failed the checks."
exit 1
Expand Down

0 comments on commit 719fdbc

Please sign in to comment.