Skip to content

Commit 986eed7

Browse files
author
Greg Bowler
committed
Pass path variable
1 parent 420ab1c commit 986eed7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

action.yml

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ inputs:
66
description: The command to run (analyse [default], clear-result-cache, dump-deps, help, list, worker)
77
required: true
88
default: analyse
9+
path:
10+
description: Path(s) with source code to run analysis on
11+
required: true
912
configuration:
1013
description: Configuration file location
1114
required: false
@@ -36,6 +39,7 @@ runs:
3639
image: 'Dockerfile'
3740
env:
3841
action_command: ${{ inputs.command }}
42+
action_path: ${{ inputs.path }}
3943
action_configuration: ${{ inputs.configuration }}
4044
action_level: ${{ inputs.level }}
4145
action_paths_file: ${{ inputs.paths_file }}

entrypoint

+5
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,10 @@ then
4848
command_string="$command_string $action_args"
4949
fi
5050

51+
if [ -n "$action_path" ]
52+
then
53+
command_string="$command_string $action_path"
54+
fi
55+
5156
echo "Command: $command_string"
5257
eval "$command_string"

0 commit comments

Comments
 (0)