fix: Inline secret refs in curl URL to avoid env var issues

SERVICE_NAME env var may conflict with GitHub Actions internals.
Inline the secrets directly in the URL template instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Sprite 2026-02-09 01:04:23 +00:00
parent 0295df0bf0
commit 758e79bb59
2 changed files with 2 additions and 6 deletions

View file

@ -16,8 +16,6 @@ jobs:
- name: Trigger improve sprite
env:
SPRITE_TOKEN: ${{ secrets.SPRITE_TOKEN }}
SPRITE_NAME: ${{ secrets.IMPROVE_SPRITE_NAME }}
SERVICE_NAME: ${{ secrets.IMPROVE_SERVICE_NAME }}
run: |
curl -s -X POST "https://api.sprites.dev/v1/sprites/${SPRITE_NAME}/services/${SERVICE_NAME}/start?duration=0s" \
curl -s -X POST "https://api.sprites.dev/v1/sprites/${{ secrets.IMPROVE_SPRITE_NAME }}/services/${{ secrets.IMPROVE_SERVICE_NAME }}/start?duration=0s" \
-H "Authorization: Bearer ${SPRITE_TOKEN}"