Skip to content

Commit

Permalink
fix: allow users to properly use the file input over the default path…
Browse files Browse the repository at this point in the history
… value (#471)

Signed-off-by: Jose R. Gonzalez <komish@flutes.dev>
  • Loading branch information
komish authored May 30, 2024
1 parent e28bab5 commit 72370e1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions dist/attachReleaseAssets/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/downloadSyft/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/runSyftAction/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/github/SyftGithubAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down

0 comments on commit 72370e1

Please sign in to comment.