From fe13b3ad3f29ec31acc3fd08b1603dbfde687f57 Mon Sep 17 00:00:00 2001 From: patrick brisbin Date: Sat, 10 Feb 2024 09:04:21 -0500 Subject: [PATCH] Build --- dist/index.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index fabe405..a2f2047 100644 --- a/dist/index.js +++ b/dist/index.js @@ -160,11 +160,13 @@ exports.getInputs = void 0; const core = __importStar(__nccwpck_require__(2186)); const Shellwords = __importStar(__nccwpck_require__(8519)); function getInputs() { + const rawWorkingDirectory = core.getInput("working-directory"); + const rawStackYaml = core.getInput("stack-yaml"); return { - workingDirectory: core.getInput("working-directory", { required: true }), - stackYaml: core.getInput("stack-yaml", { required: true }), + workingDirectory: rawWorkingDirectory === "" ? null : rawWorkingDirectory, + stackYaml: rawStackYaml === "" ? "stack.yaml" : rawStackYaml, test: core.getBooleanInput("test"), - stackArguments: getShellWordsInput("stack-arguments", { required: true }), + stackArguments: getShellWordsInput("stack-arguments"), stackSetupArguments: getShellWordsInput("stack-setup-arguments"), stackQueryArguments: getShellWordsInput("stack-query-arguments"), stackBuildArguments: getShellWordsInput("stack-build-arguments"), @@ -255,7 +257,7 @@ async function test(stack, inputs) { async function run() { try { const inputs = (0, inputs_1.getInputs)(); - if (inputs.workingDirectory !== "" && inputs.workingDirectory !== ".") { + if (inputs.workingDirectory) { core.info(`Change directory: ${inputs.workingDirectory}`); process.chdir(inputs.workingDirectory); }