From 3ee8ead5d2d8e83c90656b156589e16b0e18ba3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E8=AF=9A=20=28Cheng=20Zheng=29?= Date: Thu, 18 Jun 2026 13:23:10 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20=E4=BA=8B=E4=BB=B6=E9=A9=B1=E5=8A=A8?= =?UTF-8?q?=E8=A7=A6=E5=8F=91=20Claude=20Routine?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/trigger_claude_routine.yml | 23 ++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/trigger_claude_routine.yml diff --git a/.github/workflows/trigger_claude_routine.yml b/.github/workflows/trigger_claude_routine.yml new file mode 100644 index 0000000..f297ad7 --- /dev/null +++ b/.github/workflows/trigger_claude_routine.yml @@ -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"