mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-15 09:22:55 +00:00
Add debug
This commit is contained in:
7
.github/workflows/cloud-extensions.yml
vendored
7
.github/workflows/cloud-extensions.yml
vendored
@@ -67,11 +67,16 @@ jobs:
|
||||
- name: Get the connection URI
|
||||
id: connect-uri
|
||||
run: |
|
||||
URI=$(curl -f -X GET \
|
||||
res=$(curl -w "%{http_code}" -X GET \
|
||||
"https://console-stage.neon.build/api/v2/projects/${PROJECT_ID}/connection_uri?database_name=neondb&role_name=neondb_owner" \
|
||||
-H 'accept: application/json' \
|
||||
-H "Authorization: Bearer ${API_KEY}" | jq -r .uri
|
||||
)
|
||||
code=${res: -3}
|
||||
if [[ ${code} -ge 400 ]]; then
|
||||
echo ${res::-3}
|
||||
fi
|
||||
URI=$(echo ${res::-3} | jq .uri)
|
||||
echo uri=${URI} >> ${GITHUB_OUTPUT}
|
||||
env:
|
||||
PROJECT_ID: ${{ inputs.project_id }}
|
||||
|
||||
Reference in New Issue
Block a user