fix: deploy ci

This commit is contained in:
Víctor Falcón 2025-12-08 18:27:39 +01:00
parent 4ad965b44e
commit d4410a67fe
1 changed files with 5 additions and 3 deletions

View File

@ -154,12 +154,14 @@ jobs:
- name: Check for existing deployment
id: check-deployment
run: |
in_progress=$(curl -s \
response=$(curl -s \
--connect-timeout 30 \
--max-time 60 \
-H "Authorization: Bearer ${{ secrets.DEPLOYMENT_TOKEN }}" \
"http://147.93.126.54:8000/api/v1/deployments" \
| jq --arg app_id "${{ secrets.APPLICATION_ID }}" '[.[] | select((.application_id | tostring) == $app_id and .commit == "HEAD")] | length')
"http://147.93.126.54:8000/api/v1/deployments")
in_progress=$(echo "$response" | jq --arg app_id "${{ secrets.APPLICATION_ID }}" \
'map(select(.application_id == $app_id and .commit == "HEAD")) | length')
echo "Deployments in progress: $in_progress"