File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -113,4 +113,32 @@ jobs:
113113 echo "❌ Error : TX Block Height verification failed!"
114114 exit 1
115115 fi
116-
116+
117+
118+ # # FINAL TASK
119+
120+ # Read wallet name and verify GitHub profile
121+ if [ ! -s submission/wallet.txt ]; then
122+ echo "❌ Error : wallet.txt is empty or missing."
123+ exit 1
124+ fi
125+
126+ WALLET=$(cat submission/wallet.txt | tr -d '\n')
127+ echo "wallet=$WALLET" >> $GITHUB_OUTPUT
128+
129+ STATUS_CODE=$(curl -s -o /dev/null -w "%{http_code}" https://github.com/$WALLET)
130+ if [[ "$STATUS_CODE" == "200" ]]; then
131+ echo "✅ GitHub profile exists : https://github.com/$WALLET"
132+ else
133+ echo "❌ GitHub profile not found for wallet name '$WALLET'"
134+ exit 1
135+ fi
136+
137+ # Verify native SegWit address exists
138+ ADDRESS=$(cat submission/address.txt)
139+ if [[ $ADDRESS == "tb1"* ]]; then
140+ echo "✅ Native SegWit address is valid : $ADDRESS"
141+ else
142+ echo "❌ Invalid SegWit address : $ADDRESS"
143+ exit 1
144+ fi
You can’t perform that action at this time.
0 commit comments