fix(release): stable 仅发布正式版本,修复 4.28.0 被 beta 阻塞 - #178
Merged
Merged
Conversation
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.
定时发布使用
sort -V选择最新上游标签,会将v4.28.0-beta.1排在v4.28.0之后。由于 beta 的 Desktop Release 已存在,任务持续跳过正式版构建;beta 也会被作为 stable 发布。Summary / 改动概述
tag-poll在排序前只保留vMAJOR.MINOR.PATCH正式标签,排除 alpha、beta、rc、dev、nightly 等后缀及其他非正式标签;没有正式标签时明确失败。tag-poll使用相同规则校验source_git_ref,防止通过手动入口将预发布版本发布到 stable。预发布标签、分支和 commit 需改用custom。Verification / 验证方式
使用带 TOML 支持的 Python 环境完成本地验证:
使用真实上游标签验证筛选逻辑,最新正式版正确解析为
v4.28.0。相关 Actions:修复前的定时发布任务,日志显示选择
v4.28.0-beta.1并输出Build enabled: false,各平台构建及发布均被跳过。本 PR 尚未触发安装包发布,也未修改现有 Release 或线上 stable manifest。
Checklist / 检查清单
tag-poll输入有意收紧为正式版本标签;原分支、commit 和预发布输入需迁移至custom。Summary by Sourcery
Restrict stable release polling to formal version tags and prevent prerelease sources from entering the stable channel.
Bug Fixes:
Enhancements:
Tests: