Merge pull request #5378 from ranxianglei/fix/release-notes-describe-exclude

[PR] fix(release): direct-path release notes have always been the placeholder "- initial release" — the newly created tag sha | fix(release): direct-path 发布说明一直是占位符 "- initial release"——新打的 tag 遮蔽了 git describe
This commit is contained in:
ranxianglei
2026-11-07 10:21:04 +08:00
committed by GitHub
+1 -1
View File
@@ -634,7 +634,7 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VER="${{ steps.version.outputs.version }}"
LAST="$(git describe --tags --abbrev=0 2>/dev/null || echo "")"
LAST="$(git describe --match 'v*' --exclude "v$VER*" --tags --abbrev=0 2>/dev/null || echo "")"
NOTES="$RUNNER_TEMP/release-notes.md"
if [ -n "$LAST" ] && [ "$LAST" != "v$VER" ]; then
{