Skip to content

Commit

Permalink
Merge pull request #14 from php-actions/7-multiple-paths
Browse files Browse the repository at this point in the history
Fix multiple paths
  • Loading branch information
g105b authored Feb 9, 2022
2 parents b26bd28 + bf9abe2 commit 8549cfc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ The following configuration options are available:
+ `php_version` The version of PHP to use e.g. `7.4` (default: latest)
+ `php_extensions` Space-separated list of extensions using [php-build][php-build] e.g. `xdebug mbstring` (default: N/A)
+ `command` The command to run e.g. `list` or `worker` (default: analyse)
+ `path` Path(s) with source code to run analysis on (required)
+ `path` Path(s) with source code to run analysis on, space-separated (required)
+ `configuration` Configuration file location
+ `level` Level of rule options - the higher, the stricter
+ `paths_file` Path to a file with a list of paths to run analysis on
Expand Down
7 changes: 6 additions & 1 deletion phpstan-action.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@ fi

if [ -n "$ACTION_PATH" ]
then
command_string+=("$ACTION_PATH")
IFS=" "
read -r -a splitIFS <<< "$ACTION_PATH"
for path in "${splitIFS[@]}"
do
command_string+=("$path")
done
fi

if [ -n "$ACTION_CONFIGURATION" ]
Expand Down

0 comments on commit 8549cfc

Please sign in to comment.