fix: Use duration=0s to fire-and-forget on start service API

The Sprite start service API returns streaming NDJSON, causing curl -f
to fail with exit code 22. Use duration=0s to return immediately and
drop -f flag since the response is streaming.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Sprite 2026-02-08 23:40:50 +00:00
parent b7b102a352
commit 66221dac80
3 changed files with 3 additions and 3 deletions

View file

@ -19,5 +19,5 @@ jobs:
SPRITE_NAME: ${{ secrets.IMPROVE_SPRITE_NAME }}
SERVICE_NAME: ${{ secrets.IMPROVE_SERVICE_NAME }}
run: |
curl -sf -X POST "https://api.sprites.dev/v1/sprites/${SPRITE_NAME}/services/${SERVICE_NAME}/start" \
curl -s -X POST "https://api.sprites.dev/v1/sprites/${SPRITE_NAME}/services/${SERVICE_NAME}/start?duration=0s" \
-H "Authorization: Bearer ${SPRITE_TOKEN}"