mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-04-30 12:59:32 +00:00
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>
23 lines
597 B
YAML
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}"
|