From 9902df818b18cb5f65f84fa4005ccc19cfe6fa5d Mon Sep 17 00:00:00 2001 From: hudeng Date: Fri, 22 May 2026 11:38:39 +0800 Subject: [PATCH] fix: use merge_commit_sha instead of head.sha for auto-tag MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 解决创建的tag无法找到对用的分支的问题 Log: --- .github/workflows/auto-tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml index 058965d01..2faddc256 100644 --- a/.github/workflows/auto-tag.yml +++ b/.github/workflows/auto-tag.yml @@ -134,7 +134,7 @@ jobs: return } let data - const mergeCommitSha = context.payload.pull_request.head.sha + const mergeCommitSha = context.payload.pull_request.merge_commit_sha try { const tagResult = await github.rest.git.createTag({ repo: context.repo.repo,