neondatabase / create-branch-action

GitHub Action to create a new Neon branch
29 stars 6 forks source link

DB URL does not contain the current database name #50

Open angelinashepherd opened 3 months ago

angelinashepherd commented 3 months ago

Steps to reproduce

  1. use neondatabase/create-branch-action@v4 to create a new branch
  2. specify project_id, username, branch_name, and api_key parameters
  3. echo db_url output echo "NEON_DATABASE_URL=${{ steps.create-staging-branch.outputs.db_url }}"

Expected result

Actual result

duskpoet commented 3 months ago

Hey! Thank you for reporting this misbehavior! The action supports passing the database name but defaults to the "neondb". I will add a check to validate the passed or defaulted database name