Files
Letters/.gitea/workflows/keepactive.yml
T
Workflow config file is invalid. Please check your config file: model.ReadWorkflow: yaml: line 14: did not find expected comment or line break
biss 1e670b9b35
Vercel Deploy / deploy (push) Has been cancelled
xiufu
2026-04-30 17:07:48 +08:00

41 lines
967 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Supabase Keep Alive
on:
schedule:
- cron: "0 0 */3 * *" # 每3天一次(UTC
workflow_dispatch:
jobs:
ping:
runs-on: ubuntu-latest
steps:
- name: Ping Supabase
run: |name: Supabase Keep Alive
on:
schedule:
- cron: "0 0 */3 * *"
workflow_dispatch:
jobs:
ping:
runs-on: ubuntu-latest
env:
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
steps:
- name: Ping Supabase
run: |
echo "URL is: $SUPABASE_URL" # 调试用
curl -v -sS -f \
"$SUPABASE_URL/rest/v1/xinhan?select=id&limit=1" \
-H "apikey: $SUPABASE_ANON_KEY" \
-H "Authorization: Bearer $SUPABASE_ANON_KEY"
curl -sS -f \
"${SUPABASE_URL}/rest/v1/xinhan?select=id&limit=1" \
-H "apikey: ${SUPABASE_ANON_KEY}" \
-H "Authorization: Bearer ${SUPABASE_ANON_KEY}"