diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26520106..b100f502 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -151,30 +151,7 @@ jobs: needs: [tests, linter] if: github.ref == 'refs/heads/main' && github.event_name == 'push' steps: - - name: Check for existing deployment - id: check-deployment - run: | - response=$(curl -s \ - --connect-timeout 30 \ - --max-time 60 \ - -H "Authorization: Bearer ${{ secrets.DEPLOYMENT_TOKEN }}" \ - "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" - - if [ "$in_progress" -gt 0 ]; then - echo "Deployment already in progress, skipping..." - echo "skip=true" >> $GITHUB_OUTPUT - else - echo "No deployment in progress, proceeding..." - echo "skip=false" >> $GITHUB_OUTPUT - fi - - name: Trigger deployment - if: steps.check-deployment.outputs.skip != 'true' run: | response=$(curl -s -w "\n%{http_code}" \ --connect-timeout 30 \