# Create a database branch with GitHub Actions

DevFeed: [Create a database branch with GitHub Actions](<https://devfeed.tech/articles/create-a-database-branch-with-github-actions-5913.md>)

Original publisher: [Read original article](<https://turso.tech/blog/create-a-database-branch-with-github-actions-07bbf804>)

Author: Jamie Barton

Published: 2024-01-18T00:00:00Z

Content type: tutorial

Language: en

Sources: [Turso Blog](<https://devfeed.tech/sources/turso-blog.md>)

Topics: [GitHub Actions](<https://devfeed.tech/topics/github-actions.md>), [Turso](<https://devfeed.tech/topics/turso.md>), [Platform API](<https://devfeed.tech/topics/platform-api.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [API](<https://devfeed.tech/topics/api.md>), [Database](<https://devfeed.tech/topics/database.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [cli](<https://devfeed.tech/tags/cli.md>), [curl](<https://devfeed.tech/tags/curl.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [github](<https://devfeed.tech/tags/github.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [platform-api](<https://devfeed.tech/tags/platform-api.md>), [process](<https://devfeed.tech/tags/process.md>), [rest-api](<https://devfeed.tech/tags/rest-api.md>), [secrets](<https://devfeed.tech/tags/secrets.md>), [security](<https://devfeed.tech/tags/security.md>), [turso](<https://devfeed.tech/tags/turso.md>)

## AI overview

This tutorial explains how to use GitHub Actions and the Turso Platform API to automatically create a new Turso database by cloning an existing database whenever a GitHub branch is created. It also covers repository secrets, cURL requests, error handling, exporting the database ID for later workflow steps, and branch-name validation.

## Source excerpt

Create a GitHub Action that can create a new Turso database when a new GitHub branch is made.