Skip to content

Supabase Keep Alive #43

Supabase Keep Alive

Supabase Keep Alive #43

Workflow file for this run

name: Supabase Keep Alive
on:
schedule:
- cron: '0 0,12 * * *'
workflow_dispatch:
jobs:
ping_db:
runs-on: ubuntu-latest
steps:
- name: Send Heartbeat (Insert Row)
run: |
curl -i --fail -X POST "${{ secrets.SUPABASE_URL }}/rest/v1/supabase_heartbeat" \
-H "apikey: ${{ secrets.SUPABASE_ANON_KEY }}" \
-H "Authorization: Bearer ${{ secrets.SUPABASE_ANON_KEY }}" \
-H "Content-Type: application/json" \
-H "Prefer: return=minimal" \
-d '{}'