Skip to content

Commit d72530c

Browse files
committed
更新 release.yml,简化发布日志生成逻辑,移除不必要的 git diff 命令,提升了代码的可读性和维护性。
1 parent 210a272 commit d72530c

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,7 @@ jobs:
4141
id: diff
4242
run: |
4343
git log -1 --pretty=format:"%s%n%n%b" > commit_msg.txt
44-
if git rev-parse HEAD^ >/dev/null 2>&1; then
45-
git diff HEAD^ HEAD > diff.txt
46-
else
47-
git show --pretty="" HEAD > diff.txt
48-
fi
44+
git show --pretty="" HEAD > diff.txt
4945
5046
- name: Generate AI Release Notes
5147
id: ai_notes

0 commit comments

Comments
 (0)