Skip to content

Supabase Keep Alive

Supabase Keep Alive #7

Workflow file for this run

name: Supabase Keep Alive
on:
schedule:
# This runs at midnight every 4 days
- cron: '0 0 */4 * *'
workflow_dispatch:
jobs:
ping_db:
runs-on: ubuntu-latest
steps:
- name: Send Heartbeat Request
run: |
curl -i -X GET "${{ secrets.SUPABASE_URL }}/rest/v1/GoalEntry?select=*&limit=1" \
-H "apikey: ${{ secrets.SUPABASE_ANON_KEY }}" \
-H "Authorization: Bearer ${{ secrets.SUPABASE_ANON_KEY }}"