Skip to content

Commit

Permalink
symlink default checkout location if no path is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
JackNoordhuis committed Jan 8, 2020
1 parent 4f93374 commit f72bd6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ inputs:
source:
description: "Path to the source directory to run analysis on."
required: false
default: /source/src
phpstan-config: # path to the php stan config to use
description: "Path to the phpstan.neon configuration file."
required: false
Expand Down
2 changes: 2 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# if path to analyze is provided we symlink it to /source so the default phpstan config works
if [ ! -z "$1" ]; then
sh -c "ln -s $1 /source"
else # if no custom path is specified we symlink the default checkout location to /source
sh -c "ln -s /github/workflow /source"
fi

sh -c "analyze $*"

0 comments on commit f72bd6b

Please sign in to comment.