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: