Skip to content

Commit c5e4d94

Browse files
committed
testing workflow
1 parent f71c6cc commit c5e4d94

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/release.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,13 @@ jobs:
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
@@ -54,8 +60,10 @@ jobs:
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

0 commit comments

Comments
 (0)