Skip to content

Commit ee2e1dc

Browse files
committed
a
1 parent b1ce122 commit ee2e1dc

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/create-draft-release.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,6 @@ jobs:
8181
8282
core.setOutput('new_version', newVersion);
8383
84-
# - name: Create New Tag
85-
# run: |
86-
# git tag ${{ steps.calculate-version.outputs.new_version }}
87-
# git push origin ${{ steps.calculate-version.outputs.new_version }}
8884
- name: Generate Release Notes
8985
id: generate-release-notes
9086
uses: actions/github-script@v6
@@ -95,8 +91,17 @@ jobs:
9591
repo: context.repo.repo,
9692
tag_name: "${{ steps.calculate-version.outputs.new_version }}"
9793
});
98-
console.log(`releaseNotes: ${JSON.stringify(releaseNotes, null, 2)}`);
99-
core.setOutput("release_body", releaseNotes.body);
94+
95+
const actor = process.env.GITHUB_ACTOR; // Workflowの実行者
96+
const noteToAdd = `**@${actor} 👈 TODO: Write detailed release note for this version before release**\n`;
97+
98+
const modifiedBody = releaseNotes.body.replace(
99+
'## What\'s Changed',
100+
`## What's Changed\n\n${noteToAdd}`
101+
);
102+
103+
console.log(`releaseNotes (modified): ${JSON.stringify(modifiedBody, null, 2)}`);
104+
core.setOutput("release_body", modifiedBody);
100105
101106
- name: Create Draft Release
102107
run: |

0 commit comments

Comments
 (0)