Skip to content

fix(release): 显式指定 GitHub Release 仓库 - #44

Merged
Pectics merged 1 commit into
mainfrom
codex/-mihoto
Jul 30, 2026
Merged

fix(release): 显式指定 GitHub Release 仓库#44
Pectics merged 1 commit into
mainfrom
codex/-mihoto

Conversation

@Pectics

@Pectics Pectics commented Jul 30, 2026

Copy link
Copy Markdown
Owner

原因

四个平台产物、校验和与 provenance attestation 均已通过,但最终发布 job 没有 checkout,因此 gh release create 无法从当前目录推断仓库,报错 fatal: not a git repository

修复

  • ${{ github.repository }} 注入仓库全名
  • 两条稳定版/预发布命令均显式传入 --repo "$REPOSITORY"
  • 将显式仓库参数加入发布工作流静态契约

验证

  • RED:新增 --repo 契约后检查失败
  • GREEN:显式指定仓库后 scripts/check-release-workflow.sh 通过
  • scripts/check-v1-contract.sh 通过
  • release workflow YAML 解析通过
  • git diff --check 通过

当前没有公开的 v1.0.0 Release。本 PR 合并后将再次更新尚未发布的标签并重跑完整发布流程。

Co-Authored-By: Codex GPT-5.6 Sol <noreply@openai.com>

Co-Authored-By: Codex GPT-5.6 Luna <noreply@openai.com>
Copilot AI review requested due to automatic review settings July 30, 2026 14:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Pectics
Pectics merged commit 1836df6 into main Jul 30, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants