Skip to content

Uptime Monitoring #4670

Uptime Monitoring

Uptime Monitoring #4670

Workflow file for this run

name: Uptime Monitoring
on:
schedule:
# Run every 10 minutes to keep Render free tier alive
- cron: '*/10 * * * *'
workflow_dispatch: # Allow manual trigger
jobs:
ping-backend:
runs-on: ubuntu-latest
steps:
- name: Ping Render Backend
run: |
echo "🚀 Pinging Render backend to keep it alive..."
curl -f "https://code-for-humanity.onrender.com/api/health" || exit 1
echo "✅ Backend pinged successfully at $(date)"
echo "💡 This prevents Render free tier from sleeping due to inactivity"