Keep Alive #4339
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: Keep Alive | |
| # Ping endpoints every 5 minutes to prevent Render cold starts (critical for GSC) | |
| on: | |
| schedule: | |
| # Run every 5 minutes for more reliable uptime | |
| - cron: '*/5 * * * *' | |
| workflow_dispatch: # Allow manual trigger | |
| jobs: | |
| ping: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 2 | |
| steps: | |
| - name: Ping Health Endpoint | |
| continue-on-error: true | |
| run: | | |
| response=$(curl -s -o /dev/null -w "%{http_code}" --max-time 30 https://meetspot-irq2.onrender.com/health || true) | |
| echo "Health check response: $response" | |
| if [ "$response" != "200" ]; then | |
| echo "Warning: Health check returned non-200 status" | |
| fi | |
| - name: Ping Sitemap (SEO critical) | |
| continue-on-error: true | |
| run: | | |
| sitemap_response=$(curl -s -o /dev/null -w "%{http_code}" --max-time 30 https://meetspot-irq2.onrender.com/sitemap.xml || true) | |
| echo "Sitemap response: $sitemap_response" | |
| - name: Ping Sitemap as Googlebot (simulate crawler) | |
| continue-on-error: true | |
| run: | | |
| googlebot_response=$(curl -s -o /dev/null -w "%{http_code}" --max-time 30 \ | |
| -H "User-Agent: Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" \ | |
| https://meetspot-irq2.onrender.com/sitemap.xml || true) | |
| echo "Sitemap (Googlebot UA) response: $googlebot_response" | |
| - name: Ping Robots.txt | |
| continue-on-error: true | |
| run: | | |
| robots_response=$(curl -s -o /dev/null -w "%{http_code}" --max-time 30 https://meetspot-irq2.onrender.com/robots.txt || true) | |
| echo "Robots.txt response: $robots_response" |