fix(release): prevent duplicate incomplete agent notifications

This commit is contained in:
t8y2
2026-07-30 13:09:46 +08:00
parent d263d2c855
commit 01f5da1c4e
2 changed files with 6 additions and 2 deletions
+2 -2
View File
@@ -6,7 +6,7 @@ on:
pull_request_target:
types: [opened, closed]
release:
types: [published, released]
types: [published]
jobs:
notify:
@@ -55,7 +55,7 @@ jobs:
tag = os.environ["RELEASE_TAG"]
name = os.environ["RELEASE_NAME"]
url = os.environ["RELEASE_URL"]
body = os.environ.get("RELEASE_BODY", "")[:800]
body = os.environ.get("RELEASE_BODY", "")
import re
body = re.sub(r'#{1,6}\s*', '', body)