From 986eed7b633ff6a34d5ffe4366a67acc696a071e Mon Sep 17 00:00:00 2001 From: Greg Bowler Date: Sun, 13 Sep 2020 09:11:46 +0100 Subject: [PATCH] Pass path variable --- action.yml | 4 ++++ entrypoint | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/action.yml b/action.yml index a244100..e2ffffe 100644 --- a/action.yml +++ b/action.yml @@ -6,6 +6,9 @@ inputs: description: The command to run (analyse [default], clear-result-cache, dump-deps, help, list, worker) required: true default: analyse + path: + description: Path(s) with source code to run analysis on + required: true configuration: description: Configuration file location required: false @@ -36,6 +39,7 @@ runs: image: 'Dockerfile' env: action_command: ${{ inputs.command }} + action_path: ${{ inputs.path }} action_configuration: ${{ inputs.configuration }} action_level: ${{ inputs.level }} action_paths_file: ${{ inputs.paths_file }} diff --git a/entrypoint b/entrypoint index dbea476..c5f7c78 100755 --- a/entrypoint +++ b/entrypoint @@ -48,5 +48,10 @@ then command_string="$command_string $action_args" fi +if [ -n "$action_path" ] +then + command_string="$command_string $action_path" +fi + echo "Command: $command_string" eval "$command_string" \ No newline at end of file