mirror of
https://github.com/1c7/chinese-independent-developer.git
synced 2026-08-16 18:13:28 +08:00
ci: 事件驱动触发 Claude Routine
This commit is contained in:
23
.github/workflows/trigger_claude_routine.yml
vendored
Normal file
23
.github/workflows/trigger_claude_routine.yml
vendored
Normal 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"
|
||||
Reference in New Issue
Block a user