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
+4
View File
@@ -455,6 +455,7 @@ jobs:
- uses: actions/checkout@v4
with:
token: ${{ steps.release-token.outputs.token }}
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
path: artifacts
@@ -652,6 +653,9 @@ jobs:
PREV_VERSIONS: ${{ needs.bump-versions.outputs.prev_versions }}
PREV_TAG: ${{ needs.bump-versions.outputs.prev_tag }}
run: |
set -euo pipefail
git rev-parse --verify "${PREV_TAG}^{commit}" > /dev/null
NOTES=""
DRIVER_NAMES=()
module_names() {
+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)