ci: 事件驱动触发 Claude Routine

This commit is contained in:
郑诚 (Cheng Zheng)
2026-06-18 13:23:10 +08:00
parent a02099e079
commit 3ee8ead5d2

View File

@@ -0,0 +1,23 @@
name: 触发 Claude Routine
on:
issues:
types: [opened]
pull_request:
types: [opened]
issue_comment:
types: [created]
jobs:
trigger:
runs-on: ubuntu-latest
if: |
github.event_name == 'issues' ||
github.event_name == 'pull_request' ||
(github.event_name == 'issue_comment' && github.event.issue.number == 160)
steps:
- name: 触发 Claude Routine
run: |
curl -s -X POST "https://api.anthropic.com/v1/claude_code/routines/trig_01QqQ9rpKCEVLB5R78v83umP/fire" \
-H "Authorization: Bearer ${{ secrets.CLAUDE_ROUTINE_TOKEN }}" \
-H "Content-Type: application/json"