mirror of
https://github.com/1c7/chinese-independent-developer.git
synced 2026-08-16 18:13:28 +08:00
24 lines
659 B
YAML
24 lines
659 B
YAML
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"
|