alleneubank/Supabase Database Branching Preview
Waits for a Supabase database branch to be ready and returns the database connection details.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Aug 9, 2024
- License
- GPL 3.0
Pinned Snippet
uses: alleneubank/supabase-branch-gh-action@32471ec050aa59bcc476c88e4629c438f9a6171e # v1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| supabase-access-token | The Supabase Access Token with experimental features enabled. | yes | — |
| supabase-project-id | The Supabase Project ID with database branching enabled. | yes | — |
| git-branch | The name of the Github branch to wait for. | no | — |
| wait-for-migrations | Whether to wait for migrations to be applied before returning the branch. | no | false |
| timeout | The maximum time in seconds to wait for the branch to be ready. | no | 60 |
Outputs
| name | description |
|---|---|
| id | The ID of the branch in Supabase. |
| name | The name of the branch in Supabase. |
| project_ref | The project reference ID of the branch in Supabase. |
| parent_project_ref | The parent project ID of the branch in Supabase. |
| git_branch | The git branch of the branch in Supabase. |
| pr_number | The pull request number of the branch in Supabase. |
| reset_on_push | Whether the branch is reset on push. |
| branch_status | The status of the branch in Supabase. |
| created_at | The creation date of the branch in Supabase. |
| updated_at | The last update date of the branch in Supabase. |
| api_url | The API URL of the branch. |
| graphql_url | The GraphQL URL of the branch. |
| db_host | The DB host of the branch. |
| db_port | The DB port of the branch. |
| db_user | The DB user of the branch. |
| db_pass | The DB password of the branch. |
| jwt_secret | The JWT secret of the branch. |
| anon_key | The anon key of the branch. |
| service_role_key | The service role key of the branch. |