File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ name : Fund Devnet Wallet
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ wallet :
7+ description : ' Wallet address'
8+ required : true
9+ default : ' 8nsQswnA4Ba9QZFKNQDQRnXJGpjggu7E27TdEJFT7DYP'
10+ jobs :
11+ fund :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - name : Install Solana
15+ run : |
16+ sh -c "$(curl -sSfL https://release.anza.xyz/stable/install)"
17+ echo "$HOME/.local/share/solana/install/active_release/bin" >> $GITHUB_PATH
18+ - name : Airdrop round 1
19+ continue-on-error : true
20+ run : solana airdrop 2 ${{ github.event.inputs.wallet }} --url https://api.devnet.solana.com
21+ - name : Sleep
22+ run : sleep 20
23+ - name : Airdrop round 2
24+ continue-on-error : true
25+ run : solana airdrop 2 ${{ github.event.inputs.wallet }} --url https://api.devnet.solana.com
26+ - name : Sleep
27+ run : sleep 20
28+ - name : Airdrop Helius
29+ continue-on-error : true
30+ run : solana airdrop 2 ${{ github.event.inputs.wallet }} --url "https://devnet.helius-rpc.com/?api-key=08f6f820-71ba-4f05-8c95-6e10e8f6dc1b"
31+ - name : QuickNode faucet
32+ continue-on-error : true
33+ run : |
34+ curl -s -X POST https://faucet.quicknode.com/solana/devnet \
35+ -H "Content-Type: application/json" \
36+ -d '{"wallet":"${{ github.event.inputs.wallet }}"}'
37+ - name : Final balance
38+ run : |
39+ sleep 15
40+ solana balance ${{ github.event.inputs.wallet }} --url https://api.devnet.solana.com
41+ ---
You can’t perform that action at this time.
0 commit comments