Keep Alive #177
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
| # .github/workflows/keep-alive.yml | |
| # Versión corregida: permissions declaradas explícitamente. | |
| # Mantiene activo el repo en Render (free tier duerme tras inactividad). | |
| name: Keep Alive | |
| on: | |
| schedule: | |
| # Cada 20 minutos (ajusta a tu necesidad) | |
| - cron: "*/20 * * * *" | |
| workflow_dispatch: | |
| # Mínimo privilegio: solo lectura del contenido | |
| permissions: | |
| contents: read | |
| jobs: | |
| ping: | |
| name: Ping al backend en Render | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Ping | |
| run: | | |
| curl -sf "${{ secrets.RENDER_BACKEND_URL }}/actuator/health" \ | |
| --max-time 10 \ | |
| --retry 2 \ | |
| || echo "Backend no responde (normal si está arrancando)" |