Skip to content

Commit

Permalink
pick one body (softprops#145)
Browse files Browse the repository at this point in the history
  • Loading branch information
softprops authored Sep 11, 2021
1 parent 2d72d86 commit a3f0173
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

11 changes: 5 additions & 6 deletions src/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,11 @@ export const release = async (

const tag_name = tag;
const name = config.input_name || existingRelease.data.name || tag;

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

const draft =
config.input_draft !== undefined
Expand Down

0 comments on commit a3f0173

Please sign in to comment.