Skip to content

Commit

Permalink
fixed url to vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-dubinin committed Aug 27, 2024
1 parent 5c5f8a6 commit 1e8ab17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/await_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ def wait_for_deployment(timeout):
print(f"Sleep for 15 seconds and get deployment uid {vercel_uid} and url: {vercel_url}")
time.sleep(15)
current_url = f"https://api.vercel.com/v13/deployments/{vercel_uid}"
ui_url = f"https://vercel.com/osmo-labs/osmosis-frontend/{vercel_uid}"
current_response = requests.get(current_url, headers=headers)
status = current_response.json()['status']
print(f"Status of deployment uid {vercel_uid} is {status}")
if status == "READY":
break
if status == "ERROR":
raise Exception(f"Vercel deployment {current_url} has failed!")
raise Exception(f"Vercel deployment {ui_url} has failed!")

return f"environment_url={vercel_url}"

Expand Down

0 comments on commit 1e8ab17

Please sign in to comment.