name: Supabase CLI Action
description: Setup Supabase CLI, supabase, on GitHub Actions runners
author: Supabase
inputs:
  version:
    description: Version of Supabase CLI to install. If omitted, detect from the root lockfile and otherwise use latest.
    required: false
  cache:
    description: Cache Docker images used by Supabase local development commands.
    required: false
    default: "false"
  cache-key:
    description: Optional explicit cache key for Supabase Docker images.
    required: false
outputs:
  version:
    description: Version of installed Supabase CLI
  cache-hit:
    description: Whether an exact Supabase Docker image cache was restored.
runs:
  using: node24
  main: dist/main.js
  post: dist/post.js
  post-if: success()
