From 3199e82e4e603378c98846fdf64e13e70bb9e84c Mon Sep 17 00:00:00 2001 From: t8y2 <1156263951@qq.com> Date: Wed, 24 Jun 2026 19:34:29 +0800 Subject: [PATCH] feat(ci): rename qq-notify to notify, add Feishu webhook for PR events --- .github/workflows/{qq-notify.yml => notify.yml} | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) rename .github/workflows/{qq-notify.yml => notify.yml} (93%) diff --git a/.github/workflows/qq-notify.yml b/.github/workflows/notify.yml similarity index 93% rename from .github/workflows/qq-notify.yml rename to .github/workflows/notify.yml index b6819f192..12649a277 100644 --- a/.github/workflows/qq-notify.yml +++ b/.github/workflows/notify.yml @@ -1,4 +1,4 @@ -name: QQ Notify +name: Notifications on: # issues: @@ -162,6 +162,16 @@ jobs: # f.write(f"analysis<<{delim}\n{text}\n{delim}\n") # PYEOF + - name: Send to Feishu + if: ${{ steps.msg.outputs.skip != 'true' && github.event_name != 'release' }} + env: + FEISHU_WEBHOOK_URL: ${{ secrets.FEISHU_WEBHOOK_URL }} + MSG_CONTENT: ${{ steps.msg.outputs.msg }} + run: | + curl -s -X POST "$FEISHU_WEBHOOK_URL" \ + -H 'Content-Type: application/json' \ + -d "$(jq -n --arg text "$MSG_CONTENT" '{msg_type: "text", content: {text: $text}}')" + - name: Send to QQ group if: steps.msg.outputs.skip != 'true' env: