Skip to content

Commit

Permalink
Fix draft option
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisHsu committed Mar 1, 2024
1 parent 214b847 commit 7a88f01
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ try {
target_commitish: Github.context.sha,
name: release_name,
body: note_content,
draft: Boolean(Core.getInput('draft'))
draft: Boolean(Core.getInput('draft', {
trimWhitespace: true
}))
})
// Upload assets
.then(res => Promise.all(asset_paths.map(asset => Octokit.rest.repos.uploadReleaseAsset({
Expand Down

0 comments on commit 7a88f01

Please sign in to comment.