© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4mo ago•
2 replies
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 🙂
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Running GitHub Actions on a preview branch
SupabaseSSupabase / help-and-questions
13mo ago
How to create Supabase branch on GitHub branch push rather than on Pull Request?
SupabaseSSupabase / help-and-questions
13mo ago
Failing to create branch
SupabaseSSupabase / help-and-questions
5mo ago
Merged a branch in Github but won't deploy to production
SupabaseSSupabase / help-and-questions
2w ago