diff --git a/dist/index.js b/dist/index.js index 760cee0..6cdfd58 100644 --- a/dist/index.js +++ b/dist/index.js @@ -27771,7 +27771,7 @@ var external_node_path_default = /*#__PURE__*/__nccwpck_require__.n(external_nod function getInputs() { - const sourceDir = (0,core.getInput)("source-dir") || "."; + const sourceDir = (0,core.getInput)("source-dir"); return { sourceDir, buildDir: (0,core.getInput)("build-dir") || external_node_path_default().join(sourceDir, "build"), diff --git a/src/inputs.test.ts b/src/inputs.test.ts index e56e4c4..ac127d9 100644 --- a/src/inputs.test.ts +++ b/src/inputs.test.ts @@ -150,7 +150,7 @@ describe("get action inputs", () => { }); expect(getInputs()).toStrictEqual({ - sourceDir: ".", + sourceDir: "", buildDir: "build", generator: "", cCompiler: "", diff --git a/src/inputs.ts b/src/inputs.ts index b15dd3a..e0582a6 100644 --- a/src/inputs.ts +++ b/src/inputs.ts @@ -16,7 +16,7 @@ export interface Inputs { } export function getInputs(): Inputs { - const sourceDir = getInput("source-dir") || "."; + const sourceDir = getInput("source-dir"); return { sourceDir, buildDir: getInput("build-dir") || path.join(sourceDir, "build"),