fix(ci): Release Notes 里的注意事项只输出一次#558
Merged
H-Chris233 merged 1 commit intoMay 31, 2026
Merged
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
User description
摘要
让 GitHub Release notes 的注意事项(macOS 安装提示 / 及其渠道说明 / 行为变更提示)只出现一次,不再随 matrix job 数量重复追加。
例如:
v1.3.4-tauri的 release 里这段出现了 4 次,因为 4 个 matrix job 各调一次softprops/action-gh-release@v2并共享同一份body:+append_body: true。修复
body:改成 leader job(darwin/aarch64)写到$RUNNER_TEMP/release-body.md,release step 通过body_path引用;其他 matrix job 的OPENLESS_RELEASE_BODY_PATH为空,softprops 走body || existing.body分支保留既有内容append_body: true,leader 用默认append_body=false每次完整覆盖 body,同一 tag re-run 也保持 idempotent(旧实现 re-run 一次会把上一轮 body 再拼到前面)兼容
generate_release_notes的 gate 条件、Beta 渠道行为、in-app updater manifest——全部未改v*-tauritag 发版后 GitHub Release 页面的 notes 文本;in-app updater(latest-*.json文件名 / 内容 / 推送渠道)、artifact 下载链接、本地 dev build 不受影响测试计划
prerelease=true标记仍正确;4 个平台的 artifact(.dmg / .app.tar.gz / .exe / .msi / .deb / .rpm / .AppImage / latest-*.json)齐全PR Type
Bug fix
Description
Write release prelude once
Use
body_pathfor leader jobPreserve existing body on other jobs
Generate notes only on leader
Diagram Walkthrough
File Walkthrough
release-tauri.yml
Move release body to leader-only file.github/workflows/release-tauri.yml
$RUNNER_TEMP/release-body.md.OPENLESS_RELEASE_BODY_PATHso only the leader job passesbody_pathto the release action.bodyandappend_body: trueusage to avoid repeatedprelude appends.
generate_release_noteson the leader job, preventing duplicateWhat's Changedsections.