caelum0x 389a7255ea feat: Rithub release 1.1.0, works without the GitHub repo
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>
2026-11-17 14:21:23 +03:00

35 lines
1.2 KiB
YAML

# The full script: REST root check, table read or rpc call, retries, job summary, and the
# three early warnings (last success too old, weekly cron, GitHub about to disable the schedule).
#
# One-time setup, in your repository:
# mkdir -p .github
# curl -fsSL -o .github/keepalive.sh \
# https://git.ereboslab.com/caelum0x/supabase-keep-alive-action/raw/tag/v1/keepalive.sh
# git add .github/keepalive.sh && git commit -m "add supabase keep-alive script"
#
# The script then lives in your repository, so the job depends on nothing outside it.
# Repository secrets: SUPABASE_URL and SUPABASE_ANON_KEY.
name: Keep Supabase alive
on:
schedule:
- cron: "17 6 * * *" # daily, 06:17 UTC; avoid :00, GitHub's busiest minute
workflow_dispatch:
permissions:
contents: read
actions: read # lets the script read this workflow's previous runs
jobs:
ping:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Keep-alive ping
env:
INPUT_URL: ${{ secrets.SUPABASE_URL }}
INPUT_ANON_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
INPUT_TABLE: keepalive # or INPUT_RPC: keepalive_ping
INPUT_GITHUB_TOKEN: ${{ github.token }}
run: bash .github/keepalive.sh