Skip to content

Commit 39d3816

Browse files
committed
test log
1 parent f8000f0 commit 39d3816

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,10 @@ jobs:
8080
- name: Generate release notes
8181
run: |
8282
# 获取当前标签和上一个标签之间的提交列表,包括提交人的电子邮件
83-
git log ${{ steps.versioning.outputs.prev_tag }}..${{ steps.versioning.outputs.new_tag }} --pretty="%H %ae" --no-merges > commit_emails.txt
84-
echo "release_notes<<EOF" >> $GITHUB_ENV
85-
while read commit email; do
86-
user=$(curl -s "https://api.github.com/search/users?q=$email+in:email" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" | jq -r '.items[0].login')
87-
commit_message=$(git log -1 --pretty=%s $commit)
88-
commit_url="https://github.com/${{ github.repository }}/commit/$commit"
89-
echo "* [$commit_message]($commit_url) - @$user" >> $GITHUB_ENV
90-
done < commit_emails.txt
83+
release_notes=$(git log ${{ steps.versioning.outputs.pre_tag }}..${{ steps.versioning.outputs.new_tag }} --pretty=format:"* %H - %s - %an" --no-merges)
84+
modified_logs=$(echo "$release_notes" | sed 's/ - qyt$/ - xengine-qyt/')
85+
echo "modified_logs<<EOF" >> $GITHUB_ENV
86+
echo "$modified_logs" >> $GITHUB_ENV
9187
echo "EOF" >> $GITHUB_ENV
9288
9389
- name: Release

0 commit comments

Comments
 (0)