Skip to content

Commit 318ab1f

Browse files
authored
Merge pull request #195 from chore/keep-supabase-alive-workflow
ci: add workflow to keep Supabase free-tier project alive
2 parents 99f4a31 + f296076 commit 318ab1f

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Keep Supabase Alive
2+
3+
on:
4+
schedule:
5+
- cron: "0 0 */3 * *"
6+
workflow_dispatch:
7+
8+
jobs:
9+
ping:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Ping Supabase REST API
13+
run: |
14+
curl -sf "${{ secrets.VITE_SUPABASE_URL }}/rest/v1/keepalive?select=id&limit=1" \
15+
-H "apikey: ${{ secrets.VITE_SUPABASE_ANON_KEY }}" \
16+
-H "Authorization: Bearer ${{ secrets.VITE_SUPABASE_ANON_KEY }}"

0 commit comments

Comments
 (0)