pick one body

This commit is contained in:
softprops 2021-08-10 00:04:33 -04:00
parent 2d72d869af
commit a46aa6b303
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