Skip to content

Commit

Permalink
fix issue #200
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Feb 5, 2024
1 parent fcd227d commit 87fce46
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .changes/unreleased/Fixed-20240205-063044.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
kind: Fixed
body: '[#200](https://github.com/overtrue/phplint/issues/200) : Unable to create file
/github/home/.composer/config.json in Github Action'
time: 2024-02-05T06:30:44.244619077Z
6 changes: 3 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ set -e
if [ "$APP_DEBUG" == 'true' ]
then
echo "> You will act as user: $(id -u -n)"
echo "$(composer config --global --list)"
/bin/sh -c "ls -l $(composer config --global home)"
composer_global_home="/home/$(id -u -n)/.composer"
echo "> Path to Composer home dir: ${composer_global_home}"
fi

"$(composer config --global home)/vendor/bin/phplint" $@
"${composer_global_home}/vendor/bin/phplint" $@

0 comments on commit 87fce46

Please sign in to comment.