File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments