Skip to content

Commit 63e5e1c

Browse files
committed
fix:修复tag更新错误问题
1 parent 0e71e3f commit 63e5e1c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/semantic-version-update.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ jobs:
124124
CHANGELOG_CONTENT="${CHANGELOG_CONTENT}### 其他变更\n${OTHERS}\n\n"
125125
fi
126126
127+
# 先拉取远程的notes
128+
git fetch origin refs/notes/*:refs/notes/*
129+
127130
# 使用Git Notes记录版本信息和changelog
128131
git notes add -m "Version: ${NEW_VERSION}\n\nChangelog:\n${CHANGELOG_CONTENT}" $CURRENT_COMMIT
129132
@@ -164,6 +167,7 @@ jobs:
164167
git add src/main/resources/application.properties
165168
fi
166169
git commit --amend --no-edit
170+
167171
# 推送notes和文件更改
168172
git push origin refs/notes/*
169173
git push --force

0 commit comments

Comments
 (0)