Skip to content

Commit a3f0173

Browse files
authored
pick one body (softprops#145)
1 parent 2d72d86 commit a3f0173

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/github.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,12 +229,11 @@ export const release = async (
229229

230230
const tag_name = tag;
231231
const name = config.input_name || existingRelease.data.name || tag;
232-
233-
let body: string = "";
234-
if (existingRelease.data.body) body += existingRelease.data.body;
235-
let workflowBody = releaseBody(config);
236-
if (existingRelease.data.body && workflowBody) body += "\n";
237-
if (workflowBody) body += workflowBody;
232+
// revisit: support a new body-concat-strategy input for accumulating
233+
// body parts as a release gets updated. some users will likely want this while
234+
// others won't previously this was duplicating content for most which
235+
// no one wants
236+
let body = releaseBody(config) || existingRelease.data.body || "";
238237

239238
const draft =
240239
config.input_draft !== undefined

0 commit comments

Comments
 (0)