Skip to content

Commit 8c3d9bb

Browse files
committedApr 4, 2025
feat: Add Supabase Activity Scheduler workflow and health check API
1 parent 4b69b0d commit 8c3d9bb

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed
 

Diff for: ‎.github/workflows/ping.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# .github/workflows/supabase-activity-scheduler.yml
2+
3+
name: Supabase Activity Scheduler
4+
5+
on:
6+
schedule:
7+
- cron: "0 0 * * 2,5" # Runs at 00:00 on Tuesday and Friday
8+
workflow_dispatch:
9+
10+
jobs:
11+
send-http-request:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Send HTTP Request
16+
run: curl -X GET ${{secrets.BACKEND_URL}}

Diff for: ‎app/api/etc/supabase-activity-scheduler/route.ts

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { NextResponse } from 'next/server';
2+
3+
export async function GET() {
4+
return NextResponse.json({
5+
message: 'Backend API service is healthy',
6+
status: 'healthy',
7+
timestamp: new Date().toISOString()
8+
}, { status: 200 });
9+
}

0 commit comments

Comments
 (0)