Skip to content

Commit dc018e5

Browse files
committed
ci(release): 资产校验显式指定 GH_REPO 修复误报
release job 不做 checkout(仅下载 artifact),gh release view 无法从 git 仓库推断目标仓库而报 not a git repository,导致 v0.28.10 的资产校验误报失败——实际三个资产均已齐全。显式设置 GH_REPO 即可。
1 parent e4bed9b commit dc018e5

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,9 @@ jobs:
265265
if: startsWith(github.ref, 'refs/tags/')
266266
env:
267267
GH_TOKEN: ${{ github.token }}
268+
# release job 不做 checkout(仅下载 artifact),gh 无法从 git 仓库
269+
# 推断仓库而报 "not a git repository",故必须显式指定 GH_REPO
270+
GH_REPO: ${{ github.repository }}
268271
TAG: ${{ github.ref_name }}
269272
run: |
270273
set -eo pipefail

0 commit comments

Comments
 (0)