Skip to content

Commit ef57b00

Browse files
hudeng-goBLumia
authored andcommitted
fix: use merge_commit_sha instead of head.sha for auto-tag
解决创建的tag无法找到对用的分支的问题 Log:
1 parent aa82d25 commit ef57b00

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/auto-tag.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ jobs:
134134
return
135135
}
136136
let data
137-
const mergeCommitSha = context.payload.pull_request.head.sha
137+
const mergeCommitSha = context.payload.pull_request.merge_commit_sha
138138
try {
139139
const tagResult = await github.rest.git.createTag({
140140
repo: context.repo.repo,

0 commit comments

Comments
 (0)