Skip to content

Commit 2b3d58b

Browse files
authored
fix: Fixes to the sepolia funding workflow (#15921)
This PR attempts to fix the sepolia funding workflow. It also adds an input parameter for the amount to fund.
1 parent 5f30e31 commit 2b3d58b

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/fund-sepolia-accounts.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ on:
1717
required: false
1818
type: string
1919
default: master
20+
funding_amount:
21+
description: The amount of ETH to fund each account with
22+
required: true
23+
type: number
24+
default: 5
2025
secrets:
2126
GCP_SA_KEY:
2227
required: true
@@ -43,6 +48,11 @@ on:
4348
required: false
4449
type: string
4550
default: master
51+
funding_amount:
52+
description: The amount of ETH to fund each account with
53+
required: true
54+
type: number
55+
default: 5
4656

4757
jobs:
4858
fund-sepolia-accounts:
@@ -79,7 +89,7 @@ jobs:
7989
if [[ "${{ steps.get-mnemonic.outputs.new_mnemonic }}" == "true" ]]; then
8090
echo "Generating new mnemonic"
8191
else
82-
MNEMONIC="${{ steps.get-mnemonic.outputs.mnemonic }}"
92+
export MNEMONIC="${{ steps.get-mnemonic.outputs.mnemonic }}"
8393
echo "Using mnemonic from GCP"
8494
fi
8595
@@ -89,7 +99,7 @@ jobs:
8999
export ETHEREUM_HOST="https://json-rpc.${{ secrets.GCP_SEPOLIA_URL }}?key=${{ secrets.GCP_SEPOLIA_API_KEY }}"
90100
91101
echo "Funding accounts..."
92-
$REPO/spartan/scripts/prepare_sepolia_accounts.sh ${{ inputs.values_file }} 30 "$MNEMONIC_FILE"
102+
$REPO/spartan/scripts/prepare_sepolia_accounts.sh ${{ inputs.values_file }} ${{ inputs.funding_amount }} "$MNEMONIC_FILE"
93103
mnemonic=$(cat "$MNEMONIC_FILE")
94104
rm "$MNEMONIC_FILE"
95105
echo "::add-mask::$mnemonic"

0 commit comments

Comments
 (0)