https://github.com/tursodatabase/create-database-action
https://github.com/tursodatabase/create-database-action
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tursodatabase/create-database-action
- Owner: tursodatabase
- Created: 2024-01-10T08:54:50.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-27T10:12:21.000Z (over 1 year ago)
- Last Synced: 2025-01-05T20:41:56.755Z (5 months ago)
- Size: 1000 Bytes
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Create Turso Database
Automatically create and clone a [Turso database](https://turso.tech).
## Usage
### Branch
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:
```yaml
name: Create Database for Branch
on: createjobs:
create_database:
name: "Create Database"
runs-on: ubuntu-latest
steps:
- name: Create Database
uses: tursodatabase/create-database-action@v1
with:
organization_name: ${{ secrets.TURSO_ORGANIZATION_NAME }}
api_token: ${{ secrets.TURSO_API_TOKEN }}
existing_database_name: ${{ secrets.TURSO_DATABASE_NAME }}
new_database_name: ${{ env.NEW_DATABASE_NAME }}
# optional (will use group of existing database if not provided)
# group_name: ${{ secrets.TURSO_GROUP_NAME }} (default: "default")
```