From 3e56585910a8647c33cdd6646ad33bf6b6ddf2f7 Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Sat, 29 Feb 2020 23:10:21 +0100 Subject: [PATCH] main: fix html input --- main.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index bc68730..8464cb7 100644 --- a/main.js +++ b/main.js @@ -20,7 +20,7 @@ async function main() { body = core.getInput("body", {required: true}) to = core.getInput("to", {required: true}) from = core.getInput("from", {required: true}) - html = core.getInput("html") + html = core.getInput("html") || "false" transport = nodemailer.createTransport({ host: server_address, @@ -36,8 +36,8 @@ async function main() { from: `"${from}" <${username}>`, to: to, subject: subject, - text: !html ? get_body(body) : undefined, - html: html ? get_body(body) : undefined, + text: html == "false" ? get_body(body) : undefined, + html: html == "true" ? get_body(body) : undefined, }) console.log(info)