Uptime Monitoring #4664
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" |