From 72370e18af3add17e587ca8533fab7d28d2b0bee Mon Sep 17 00:00:00 2001 From: "Jose R. Gonzalez" Date: Thu, 30 May 2024 14:38:15 -0500 Subject: [PATCH] fix: allow users to properly use the file input over the default path value (#471) Signed-off-by: Jose R. Gonzalez --- dist/attachReleaseAssets/index.js | 6 +++--- dist/downloadSyft/index.js | 6 +++--- dist/runSyftAction/index.js | 6 +++--- src/github/SyftGithubAction.ts | 4 ++-- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/dist/attachReleaseAssets/index.js b/dist/attachReleaseAssets/index.js index 8f86cedb..12f5d6e9 100644 --- a/dist/attachReleaseAssets/index.js +++ b/dist/attachReleaseAssets/index.js @@ -126392,12 +126392,12 @@ function executeSyft(_a) { args = [...args, `${input.image}`]; } } - else if ("path" in input && input.path) { - args = [...args, `dir:${input.path}`]; - } else if ("file" in input && input.file) { args = [...args, `file:${input.file}`]; } + else if ("path" in input && input.path) { + args = [...args, `dir:${input.path}`]; + } else { throw new Error("Invalid input, no image or path specified"); } diff --git a/dist/downloadSyft/index.js b/dist/downloadSyft/index.js index 6038530a..18cd1ed7 100644 --- a/dist/downloadSyft/index.js +++ b/dist/downloadSyft/index.js @@ -126440,12 +126440,12 @@ function executeSyft(_a) { args = [...args, `${input.image}`]; } } - else if ("path" in input && input.path) { - args = [...args, `dir:${input.path}`]; - } else if ("file" in input && input.file) { args = [...args, `file:${input.file}`]; } + else if ("path" in input && input.path) { + args = [...args, `dir:${input.path}`]; + } else { throw new Error("Invalid input, no image or path specified"); } diff --git a/dist/runSyftAction/index.js b/dist/runSyftAction/index.js index a39a6395..0a22a2e8 100644 --- a/dist/runSyftAction/index.js +++ b/dist/runSyftAction/index.js @@ -126392,12 +126392,12 @@ function executeSyft(_a) { args = [...args, `${input.image}`]; } } - else if ("path" in input && input.path) { - args = [...args, `dir:${input.path}`]; - } else if ("file" in input && input.file) { args = [...args, `file:${input.file}`]; } + else if ("path" in input && input.path) { + args = [...args, `dir:${input.path}`]; + } else { throw new Error("Invalid input, no image or path specified"); } diff --git a/src/github/SyftGithubAction.ts b/src/github/SyftGithubAction.ts index 77956b3b..25ae0d77 100644 --- a/src/github/SyftGithubAction.ts +++ b/src/github/SyftGithubAction.ts @@ -140,10 +140,10 @@ async function executeSyft({ } else { args = [...args, `${input.image}`]; } - } else if ("path" in input && input.path) { - args = [...args, `dir:${input.path}`]; } else if ("file" in input && input.file) { args = [...args, `file:${input.file}`]; + } else if ("path" in input && input.path) { + args = [...args, `dir:${input.path}`]; } else { throw new Error("Invalid input, no image or path specified"); }