Releases: prisma/create-prisma-postgres-database-action
Releases · prisma/create-prisma-postgres-database-action
v1.0.1
What's Changed
- chore: update action entry point path and add gitignore by @nurul3101 in #2
Full Changelog: v1...v1.0.1
v1.0.0 - Create Prisma Postgres Database Action
GitHub Action for creating Prisma Postgres databases in CI/CD workflows. Enables automated database provisioning for testing, development, and deployment pipelines.
Repository: prisma/create-prisma-postgres-database-action
What's New
- Database Creation: Programmatically create Prisma Postgres databases via GitHub Action
- Smart Naming: Auto-generates names (
pr_{number}_{branch}
for PRs,test_{run_number}
for other contexts) or accepts custom names - Multi-Region Support: Deploy databases in different regions (defaults to
us-east-1
) - Complete Integration: Returns database ID, name, and connection URL for immediate use in workflows
API Reference
Inputs
Parameter | Required | Description | Default |
---|---|---|---|
service_token |
Yes | Prisma Postgres service token | - |
project_id |
Yes | Prisma project ID | - |
database_name |
No | Custom database name | Auto-generated |
region |
No | Database region | us-east-1 |
Outputs
Parameter | Description |
---|---|
database_id |
ID of the created database |
database_name |
Name of the database |
database_url |
Complete DATABASE_URL connection string |
Use Cases
- Databases for CI pipelines
- PR-based database environments
- Integration testing with isolated data
- Database lifecycle management in GitHub workflows
Companion Action: Delete Prisma Postgres Database Action