pick one body (#145)

This commit is contained in:
Doug Tangren 2021-09-10 23:07:54 -04:00 committed by GitHub
parent 2d72d869af
commit a3f0173fb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

View File

@ -229,12 +229,11 @@ export const release = async (
const tag_name = tag; const tag_name = tag;
const name = config.input_name || existingRelease.data.name || tag; const name = config.input_name || existingRelease.data.name || tag;
// revisit: support a new body-concat-strategy input for accumulating
let body: string = ""; // body parts as a release gets updated. some users will likely want this while
if (existingRelease.data.body) body += existingRelease.data.body; // others won't previously this was duplicating content for most which
let workflowBody = releaseBody(config); // no one wants
if (existingRelease.data.body && workflowBody) body += "\n"; let body = releaseBody(config) || existingRelease.data.body || "";
if (workflowBody) body += workflowBody;
const draft = const draft =
config.input_draft !== undefined config.input_draft !== undefined