From 9b11ac16a82450b178521ae165c7dfdbe5322ab3 Mon Sep 17 00:00:00 2001 From: Thorrak Date: Fri, 23 Apr 2021 10:30:32 -0400 Subject: [PATCH] Fix dict assembly --- post.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/post.js b/post.js index 4b3ccb9..994865f 100644 --- a/post.js +++ b/post.js @@ -6,10 +6,9 @@ try { const composeFile = core.getInput('compose-file'); const downOptionsString = core.getInput('down-options'); + let options = { config: composeFile, log: true}; if (downOptionsString.length > 0) - let options = { config: composeFile, log: true, commandOptions: downOptionsString.split(" ") }; - else - let options = { config: composeFile, log: true}; + options['commandOptions'] = downOptionsString.split(" "); if (!fs.existsSync(composeFile)) { console.log(`${composeFile} not exists`);