Incorrect db_url after using github action create-branch-action
I'm leveraging the neondatabase/create-branch-action@v4 github action (https://github.com/neondatabase/create-branch-action).
After creating the branch, I try to get the database URL with the command
echo "NEON_DATABASE_URL=${{ steps.create-feature-branch.outputs.db_url }}" >> $GITHUB_ENV;
However, the URL contains the database neondb instead of my actual database name. The db_url should contain the name of the database i'm actually branching from
https://github.com/neondatabase/create-branch-action/issues/50GitHub
DB URL does not contain the current database name · Issue #50 · neo...
Steps to reproduce use neondatabase/create-branch-action@v4 to create a new branch specify project_id, username, branch_name, and api_key parameters echo db_url output echo "NEON_DATABASE_URL=...
4 Replies
stormy-gold•2y ago
Looks like this is a documentation issue on our end. You can pass a
database parameter to the action. The default value is neondb, as you've experienced:
https://github.com/neondatabase/create-branch-action/blob/main/action.yml#L21-L23GitHub
create-branch-action/action.yml at main · neondatabase/create-branc...
GitHub Action to create a new Neon branch. Contribute to neondatabase/create-branch-action development by creating an account on GitHub.
stormy-gold•2y ago
I can make a PR to address this tomorrow
plain-purpleOP•2y ago
thank you so much Evan! I really appreciate it
stormy-gold•2y ago
Anytime 🫡