Skip to content

修复持续集成读取模组版本失败 - #3

Merged
QiuYe-QAQ merged 1 commit into
mainfrom
qy/fix-ci-print-version
Nov 23, 2026
Merged

QiuYe-QAQ merged 1 commit into
mainfrom
qy/fix-ci-print-version

Conversation

@QiuYe-QAQ

Copy link
Copy Markdown
Member

What / 目的

修复快照构建在 Get Mod Version 步骤失败的问题。根项目已有 printVersion,但原调用会配置 Forge 子项目,Mavenizer 的多行日志因此被写入 $GITHUB_OUTPUT,GitHub Actions 无法解析。

Implementation Details / 实现细节

  • 快照与正式发布都用 --configure-on-demand :printVersion 只配置根项目。
  • 先执行 Gradle,再写入版本输出。Gradle 失败时,版本读取步骤会立即失败。

Outcome / 结果

  • Java 21 下通过 Bash 执行快照版本读取步骤,输出文件只有 version=0.1.0 一行。正式发布环境下的 Gradle 命令也只输出 0.1.0。
  • 快照工作流 actionlint 和 git diff --check 通过。全仓库 actionlint 仍报告 publish.yml 已有的 inputs.branch 未定义错误。

@QiuYe-QAQ QiuYe-QAQ added Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. type: bug Something isn't working labels Nov 23, 2026
@github-actions github-actions Bot added the main label Nov 23, 2026
@QiuYe-QAQ QiuYe-QAQ added ignore changelog PR should not be added to the changelog. type: bugfix General bug fixes and removed type: bug Something isn't working labels Nov 23, 2026
@QiuYe-QAQ
QiuYe-QAQ merged commit 89ff521 into main Nov 23, 2026
5 of 8 checks passed
@QiuYe-QAQ
QiuYe-QAQ deleted the qy/fix-ci-print-version branch November 23, 2026 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore changelog PR should not be added to the changelog. main Release: Patch - 0.0.X Smaller changes that either are bug fixes or very minor tweaks. type: bugfix General bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant