Fix parse bool bug

This commit is contained in:
Lunny Xiao 2024-05-06 22:08:41 +08:00
parent 89861ccfb7
commit 6a4c0c7c03
No known key found for this signature in database
GPG key ID: C3B7C91B632F738A

View file

@ -15,8 +15,8 @@ async function run() {
const name = core.getInput("name") const name = core.getInput("name")
const body = getReleaseBody(core.getInput("body"), core.getInput("body_path")) const body = getReleaseBody(core.getInput("body"), core.getInput("body_path"))
const tag_name = core.getInput("tag_name") const tag_name = core.getInput("tag_name")
const draft = Boolean(core.getInput("draft")) const draft = core.getInput("draft") === 'true'
const prerelease = Boolean(core.getInput("prerelease")) const prerelease = core.getInput("prerelease") === 'true'
const files = core.getInput("files") const files = core.getInput("files")
const repository = core.getInput("repository") const repository = core.getInput("repository")
const token = core.getInput("token") const token = core.getInput("token")