File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 4040 per_page: 20,
4141 });
4242
43- const notes = commits.map(c => `- ${c.commit.message.split('\n')[0]}`).join('\n');
43+ const notes = commits.map(c => {
44+ const msg = c.commit.message.split('\n')[0];
45+ const sha = c.sha.substring(0, 7);
46+ const author = c.commit.author.name;
47+ return `- ${msg} (${sha}, by ${author})`;
48+ }).join('\n');
49+
4450 return notes;
4551
4652 - name : Create GitHub Release
5460 run : |
5561 echo "## ${{ steps.tag.outputs.tag }}" >> CHANGELOG.md
5662 echo "" >> CHANGELOG.md
57- echo "${{ steps.release_notes.outputs.result }}" >> CHANGELOG.md
63+ cat <<EOF >> CHANGELOG.md
64+ ${{ steps.release_notes.outputs.result }}
65+ EOF
5866 echo "" >> CHANGELOG.md
5967 git add CHANGELOG.md
6068 git commit -m "docs : update CHANGELOG for ${{ steps.tag.outputs.tag }}"
61- git push origin HEAD
69+ git push origin HEAD:refs/heads/main
You can’t perform that action at this time.
0 commit comments