Fix script and job

This commit is contained in:
James Cole
2023-11-04 11:41:21 +01:00
parent 4db6933c17
commit b77b3e3fc8
2 changed files with 3 additions and 4 deletions

View File

@@ -33,7 +33,8 @@ SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
./vendor/bin/phpstan analyse -c .ci/phpstan.neon --no-progress --error-format=table > phpstan-report.txt
EXIT_CODE=$?
if [ $GITHUB_ACTIONS -ne "true" ]; then
if [[ $GITHUB_ACTIONS = "" ]]
then
echo 'The PHPstan report can be found in phpstan-report.txt'
exit $EXIT_CODE
fi