Keep Services Alive #9
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 Services Alive | |
| on: | |
| schedule: | |
| # Every 3 days at 12:00 AM UTC | |
| - cron: '0 0 */3 * *' | |
| # Allow manual run from GitHub Actions tab | |
| workflow_dispatch: | |
| jobs: | |
| keepalive: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Ping Backend Health | |
| run: | | |
| curl -fsSL \ | |
| https://breakarena-backend.onrender.com/health | |
| - name: Ping Backend Database | |
| run: | | |
| curl -fsSL \ | |
| -H "x-cron-secret: ${{ secrets.CRON_SECRET }}" \ | |
| https://breakarena-backend.onrender.com/health/ping_db | |
| - name: Ping Frontend | |
| run: | | |
| curl -fsSL \ | |
| https://break-arena.vercel.app/ |