We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 25f4446 + 7ecc164 commit 1962548Copy full SHA for 1962548
.github/workflows/supabase-keep-alive-ping.yml
@@ -0,0 +1,19 @@
1
+name: Supabase Keep-Alive Ping
2
+on:
3
+ schedule:
4
+ # Runs at 00:00 UTC every Monday, Wednesday, and Sunday
5
+ - cron: "0 0 * * 1,3,7"
6
+ workflow_dispatch:
7
+
8
+jobs:
9
+ ping_db:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Ping Supabase REST API
13
+ env:
14
+ NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }}
15
+ NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY: ${{ secrets.NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY }}
16
+ run: |
17
+ curl -f -X GET "$NEXT_PUBLIC_SUPABASE_URL/rest/v1/your_tiny_table?select=id&limit=1" \
18
+ -H "apikey: $NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY" \
19
+ -H "Authorization: Bearer $NEXT_PUBLIC_SUPABASE_PUBLISHABLE_KEY"
0 commit comments