Automatically create and clone a Turso database.
The most common use for the action is to create a new database from an existing database. This is useful for testing changes to your database schema or data in a separate branch.
Add the following to your workflow:
name: Create Database for Branch
on: create
jobs:
create_database:
name: "Create Database"
runs-on: ubuntu-latest
steps:
- name: Create Database
uses: vivid-web/[email protected]
with:
organization: ${{ secrets.TURSO_ORGANIZATION_NAME }}
api_token: ${{ secrets.TURSO_API_TOKEN }}
db_name: ${{ env.TURSO_DATABASE_NAME }}