SupabaseS
Supabase•2mo ago
Standaa

How to create a db branch in a Github Action?

Hi guys,
We are relying on Github Actions for CICD.
Multiple services of our pipeline depend on a database connection url (e.g a node api).

I am trying to assess whether supabase db branching would work for us, by checking if we can:
  1. Create a branch dynamically in a GH action
  2. Retrieve that branch's connection url in other build steps
Reading the docs it is still unclear, whether the above is achievable.
I can find action code related to installing the CLI and deploying functions, but cannot find anything relating to branch creation through the CLI.

I cannot find any information either about how the actual connection urls for these branches are returned / where they live.

What is the natural supabase course of action for the above?

Thanks 🙂
Was this page helpful?