spawn/.github/workflows/refactor.yml
Sprite 758e79bb59 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>
2026-02-09 01:04:26 +00:00

23 lines
597 B
YAML

name: Trigger Refactor
on:
schedule:
- cron: '*/30 * * * *'
issues:
types: [opened, reopened]
workflow_dispatch:
concurrency:
group: refactor-sprite-trigger
cancel-in-progress: false
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger refactor sprite
env:
SPRITE_TOKEN: ${{ secrets.SPRITE_TOKEN }}
run: |
curl -s -X POST "https://api.sprites.dev/v1/sprites/${{ secrets.REFACTOR_SPRITE_NAME }}/services/${{ secrets.REFACTOR_SERVICE_NAME }}/start?duration=0s" \
-H "Authorization: Bearer ${SPRITE_TOKEN}"