Skip to content

Keep Alive

Keep Alive #177

Workflow file for this run

# .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)"