Schedule Supabase Pings #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Schedule Supabase Pings' | |
on: | |
workflow_dispatch: | |
schedule: | |
# Run this job at 4:30 AM UTC every Sunday and Thursday. Scheduled jobs are | |
# often delayed and can be dropped during peak times (see | |
# https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule) | |
# so to attempt to ensure that this job does not get dropped, this job is run | |
# at the half hour rather than the start of the hour (which according to docs | |
# is usually a busier time), and is executed early in the morning UTC. This | |
# job is executed twice a week to further help ensure that Supabase is kept | |
# alive. | |
- cron: '30 4 * * 0,4' | |
jobs: | |
ping-staging: | |
uses: ./.github/workflows/ping-supabase.yml | |
with: | |
environment: staging | |
secrets: | |
SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | |
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} | |
ping-prod: | |
uses: ./.github/workflows/ping-supabase.yml | |
with: | |
environment: production | |
secrets: | |
SUPABASE_URL: ${{ secrets.SUPABASE_URL }} | |
SUPABASE_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }} |