File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -18,19 +18,17 @@ jobs:
18
18
- name : Find latest deployment
19
19
id : latest_deployment
20
20
run : |
21
- latest_deployment =$(curl -sSf -X GET "https://api.vercel.com/v12/now/deployments?projectId=ut-bot-deploy&limit=1" \
21
+ latest_deployment_url =$(curl -sSf -X GET "https://api.vercel.com/v12/now/deployments?projectId=ut-bot-deploy&limit=1" \
22
22
-H "Authorization: Bearer 4EMYs0YWWJQrhQYIVDGzIFkR" \
23
23
-H "Content-Type: application/json" \
24
- | jq -r '.deployments[0].uid ')
25
- echo "::set-output name=deployment_id ::$latest_deployment "
24
+ | jq -r '.deployments[0].url ')
25
+ echo "::set-output name=deployment_url ::$latest_deployment_url "
26
26
27
27
- name : Wait for Deployment
28
28
run : |
29
- # Command to check the deployment status
30
- while [[ "$(curl -sSf -X GET "https://api.vercel.com/v3/deployments/${{ steps.latest_deployment.outputs.deployment_id }}/events" \
31
- -H "Authorization: Bearer 4EMYs0YWWJQrhQYIVDGzIFkR" \
32
- -H "Content-Type: application/json" \
33
- | grep -c 'READY')" -eq 0 ]]; do
29
+ deployment_url="${{ steps.latest_deployment.outputs.deployment_url }}"
30
+ # Command to wait for the deployment to be ready
31
+ while ! curl -sSLf "${deployment_url}" >/dev/null; do
34
32
sleep 30
35
33
done
36
34
You can’t perform that action at this time.
0 commit comments