Skip to content

WARP+ Referral Generator #618

WARP+ Referral Generator

WARP+ Referral Generator #618

Workflow file for this run

name: WARP+ Referral Generator
on:
workflow_dispatch:
inputs:
runs:
description: 'Number of referral attempts'
required: true
default: '1'
interval:
description: 'Interval between requests (seconds)'
required: true
default: '2'
schedule:
- cron: '0 */6 * * *' # Run every 6 hours
env:
REFERRER_ID: l321C9Wk-a52qZ47P-0WI85k7A
jobs:
run-warp-plus:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install aiohttp colorama tqdm pyfiglet psutil requests
- name: Run WARP+ script
run: |
python main.py --referrer ${{ env.REFERRER_ID }} --runs ${{ github.event.inputs.runs || '1' }} --interval ${{ github.event.inputs.interval || '2' }}
- name: Upload results
uses: actions/upload-artifact@v2
with:
name: warp-plus-results
path: warp_ultra.sav
- name: Update README with results
run: |
echo "## WARP+ Referral Generator Results" >> $GITHUB_STEP_SUMMARY
echo "Date: $(date)" >> $GITHUB_STEP_SUMMARY
echo "Referrer ID: ${{ env.REFERRER_ID }}" >> $GITHUB_STEP_SUMMARY
echo "Runs: ${{ github.event.inputs.runs || '1' }}" >> $GITHUB_STEP_SUMMARY
echo "Interval: ${{ github.event.inputs.interval || '2' }} seconds" >> $GITHUB_STEP_SUMMARY
echo "Status: ${{ job.status }}" >> $GITHUB_STEP_SUMMARY
if [ -f warp_ultra.sav ]; then
echo "Results:" >> $GITHUB_STEP_SUMMARY
cat warp_ultra.sav >> $GITHUB_STEP_SUMMARY
else
echo "No results file generated" >> $GITHUB_STEP_SUMMARY
fi
- name: Check system resources
run: |
echo "## System Resources" >> $GITHUB_STEP_SUMMARY
echo "CPU Usage: $(top -bn1 | grep "Cpu(s)" | sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | awk '{print 100 - $1"%"}')" >> $GITHUB_STEP_SUMMARY
echo "Memory Usage: $(free -m | awk 'NR==2{printf "%.2f%%", $3*100/$2 }')" >> $GITHUB_STEP_SUMMARY
echo "Disk Usage: $(df -h | awk '$NF=="/"{printf "%s", $5}')" >> $GITHUB_STEP_SUMMARY
- name: Check internet speed
run: |
echo "## Internet Speed" >> $GITHUB_STEP_SUMMARY
speed=$(curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python -)
echo "$speed" >> $GITHUB_STEP_SUMMARY