Indexer keepalive #2
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
| # Keeps the Render free-tier indexer warm during weekday business hours. | |
| # Set repo variable INDEXER_HEALTH_URL → https://<service>.onrender.com/health | |
| name: Indexer keepalive | |
| permissions: {} | |
| on: | |
| schedule: | |
| # Mon–Fri, 9am–5:59pm Mountain (last ping ~5:48pm; stays up through ~6pm) | |
| - cron: "*/12 9-17 * * 1-5" | |
| timezone: America/Denver | |
| workflow_dispatch: | |
| jobs: | |
| ping: | |
| name: GET /health | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Ping indexer | |
| env: | |
| INDEXER_HEALTH_URL: ${{ vars.INDEXER_HEALTH_URL }} | |
| run: | | |
| if [ -z "$INDEXER_HEALTH_URL" ]; then | |
| echo "::error::Set repository variable INDEXER_HEALTH_URL (e.g. https://<service>.onrender.com/health)" | |
| exit 1 | |
| fi | |
| curl -fsS --max-time 120 "$INDEXER_HEALTH_URL" |