66 workflow_call :
77 inputs :
88 environment :
9- description : ' Environment to fund (e.g., staging-public, next-net, staging-ignition, testnet)'
9+ description : " Environment to fund (e.g., staging-public, next-net, staging-ignition, testnet)"
1010 required : true
1111 type : string
1212 low_watermark :
13- description : ' Minimum ETH balance (default: 0.5)'
13+ description : " Minimum ETH balance (default: 0.5)"
1414 required : false
1515 type : string
16- default : ' 0.5'
16+ default : " 0.5"
1717 high_watermark :
18- description : ' Target ETH balance when funding (default: 1.0)'
18+ description : " Target ETH balance when funding (default: 1.0)"
1919 required : false
2020 type : string
21- default : ' 1.0'
21+ default : " 1.0"
2222 namespace :
23- description : ' Kubernetes namespace override (e.g., v4-devnet-1). Sets NAMESPACE before sourcing env file.'
23+ description : " Kubernetes namespace override (e.g., v4-devnet-1). Sets NAMESPACE before sourcing env file."
2424 required : false
2525 type : string
2626 workflow_dispatch :
2727 inputs :
2828 environment :
29- description : ' Environment to fund'
29+ description : " Environment to fund"
3030 required : true
3131 type : choice
3232 options :
33- - staging-public
34- - next-net
35- - staging-ignition
36- - testnet
37- - devnet
38- - tps-scenario
33+ - staging-public
34+ - next-net
35+ - staging-ignition
36+ - testnet
37+ - devnet
38+ - tps-scenario
3939 low_watermark :
40- description : ' Minimum ETH balance'
40+ description : " Minimum ETH balance"
4141 required : false
4242 type : string
43- default : ' 0.5'
43+ default : " 0.5"
4444 high_watermark :
45- description : ' Target ETH balance when funding'
45+ description : " Target ETH balance when funding"
4646 required : false
4747 type : string
48- default : ' 1.0'
48+ default : " 1.0"
4949 namespace :
50- description : ' Kubernetes namespace override (e.g., v4-devnet-1)'
50+ description : " Kubernetes namespace override (e.g., v4-devnet-1)"
5151 required : false
5252 type : string
5353
5454concurrency :
5555 group : ensure-funded-environment-${{ inputs.environment }}
56- cancel-in-progress : false # Don't cancel funding operations
56+ cancel-in-progress : false # Don't cancel funding operations
5757
5858jobs :
5959 ensure-funded :
@@ -71,10 +71,10 @@ jobs:
7171 - name : Validate inputs
7272 run : |
7373 # Validate environment
74- if [[ ! -f "spartan/environments/${{ inputs.environment }}.env " ]]; then
75- echo "Error: Environment file not found for environment ' ${{ inputs.environment }}' "
74+ if [[ ! -f "spartan/environments/networks/ ${{ inputs.environment }}.yml " ]]; then
75+ echo "Error: Network YAML not found: spartan/environments/networks/ ${{ inputs.environment }}.yml "
7676 echo "Available environments:"
77- ls -1 spartan/environments/ | grep -v '\.local\.env$' || echo "No environment files found"
77+ ls -1 spartan/environments/networks/
7878 exit 1
7979 fi
8080
0 commit comments