Skip to content

Commit

Permalink
Pass path variable
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Sep 13, 2020
1 parent 420ab1c commit 986eed7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 }}
Expand Down
5 changes: 5 additions & 0 deletions entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 986eed7

Please # to comment.