db9-ai/DB9 Action

Create temporary DB9 databases for GitHub Actions.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
modeOperation to run. Use database for an empty ephemeral database, branch to clone from an existing database, or cleanup to delete stale CI databases by prefix.nodatabase
database-nameName for the DB9 database or branch. Defaults to a generated name based on the workflow run.no
database-name-prefixPrefix used when generating a database name.nogha
worker-idOptional worker or matrix identifier appended to generated database names.no
regionDB9 region to create the database in.no
project-idDB9 project ID to create the database in.no
database-userDatabase user to request in the temporary connection URL.noadmin
source-database-idSource DB9 database ID for branch mode.no
source-database-nameSource DB9 database name for branch mode. Used only when source-database-id is not set.no
snapshot-atOptional RFC3339 timestamp for point-in-time branch mode.no
waitWait for the created database or branch to become ACTIVE before fetching the connection URL.notrue
wait-timeout-secondsMaximum seconds to wait for a database or branch to become ACTIVE.no120
wait-interval-secondsSeconds between database status polls while waiting.no2
cleanup-prefixDatabase name prefix to delete in cleanup mode.no
db9-api-keyDB9 API key. Omit this input to use anonymous DB9 provisioning.no
db9-api-urlDB9 API base URL.no
cleanupDelete the created database in the action post step.notrue
export-envExport DATABASE_URL, DB9_DATABASE_URL, and DB9_DATABASE for later steps.notrue
namedescription
database-urlTemporary PostgreSQL connection URL for the created DB9 database or branch.
database-nameName of the created DB9 database or branch.
database-idID of the created DB9 database or branch, when returned by the DB9 API.
database-userDatabase user used for the temporary connection URL.
expires-atExpiration timestamp for the temporary connection URL, when returned by the DB9 API.
database-stateFinal state observed for the created DB9 database or branch.
cleanup-countNumber of databases deleted in cleanup mode.