Skip to content

Commit 1d0353e

Browse files
hudeng-gomyml
authored andcommitted
fix: Update auto-tag.yml
解决git tag和release name不一致的问题
1 parent 1bf2ab7 commit 1d0353e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/auto-tag.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,13 @@ jobs:
165165
await github.rest.repos.createRelease({
166166
owner: context.repo.owner,
167167
repo: context.repo.repo,
168-
tag_name: '${{ steps.get-version.outputs.TAG }}',
168+
tag_name: '${{ steps.get-tag.outputs.TAG }}',
169169
})
170170
171171
// Add a reminder for needed rebase to PR in open state
172172
const BOT_NAME = "TAG Bot"
173173
const COMMENT_HEAD = "**" + BOT_NAME + "**\n\n"
174-
const COMMENT_BODY = "New tag: ${{ steps.get-version.outputs.TAG }}\nDISTRIBUTION: ${{ steps.get-version.outputs.DISTRIBUTION }}\nSuggest: synchronizing this PR through rebase #" + context.issue.number
174+
const COMMENT_BODY = "New tag: ${{ steps.get-tag.outputs.TAG }}\nDISTRIBUTION: ${{ steps.get-version.outputs.DISTRIBUTION }}\nSuggest: synchronizing this PR through rebase #" + context.issue.number
175175
for await (const prsResp of github.paginate.iterator(
176176
github.rest.pulls.list,
177177
{

0 commit comments

Comments
 (0)