README rewritten around three steps (table SQL, secrets, self-contained workflow), with a vendored full-script workflow, a crontab example and an npx-from-git CLI. Every link and uses: line that pointed at the 404 GitHub repo is gone. keepalive.sh no longer prints the anon key outside GitHub Actions (::add-mask:: only when GITHUB_ACTIONS=true). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
31 lines
984 B
YAML
31 lines
984 B
YAML
# Several free projects from one repository. Each project gets its own pair of secrets:
|
|
# SUPABASE_URL_APP / SUPABASE_ANON_KEY_APP, SUPABASE_URL_BLOG / SUPABASE_ANON_KEY_BLOG, ...
|
|
# Uses the vendored script; see full-checks.yml for the one-time setup.
|
|
name: Keep Supabase projects alive
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "41 7 * * *"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
actions: read
|
|
|
|
jobs:
|
|
ping:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false # one paused project must not hide the others
|
|
matrix:
|
|
project: [APP, BLOG, STAGING]
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Keep-alive ping (${{ matrix.project }})
|
|
env:
|
|
INPUT_URL: ${{ secrets[format('SUPABASE_URL_{0}', matrix.project)] }}
|
|
INPUT_ANON_KEY: ${{ secrets[format('SUPABASE_ANON_KEY_{0}', matrix.project)] }}
|
|
INPUT_TABLE: keepalive
|
|
INPUT_GITHUB_TOKEN: ${{ github.token }}
|
|
run: bash .github/keepalive.sh
|