spawn/.github/workflows/refactor.yml
L 4a05b32897
Add GitHub Actions triggers for Sprite services (#53)
* refactor: Automated improvements

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

* chore: Remove __pycache__ and add to .gitignore

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Sprite <noreply@sprite.dev>
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-08 10:29:18 -08:00

20 lines
524 B
YAML

name: Trigger Refactor
on:
schedule:
- cron: '0 */2 * * *'
issues:
types: [opened, reopened]
workflow_dispatch:
jobs:
trigger:
runs-on: ubuntu-latest
steps:
- name: Trigger refactor sprite
env:
SPRITE_URL: ${{ secrets.REFACTOR_SPRITE_URL }}
SPRITE_SECRET: ${{ secrets.REFACTOR_SPRITE_SECRET }}
run: |
curl -sf -X POST "${SPRITE_URL}/trigger?reason=${{ github.event_name }}" \
-H "Authorization: Bearer ${SPRITE_SECRET}" --max-time 30