Skip to content

Commit 78b9e32

Browse files
committed
feat: Add support for custom working directory
1 parent d9ab69f commit 78b9e32

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/php-static-analysis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,7 @@ jobs:
6363
6464
- name: Run PHPStan
6565
if: steps.changed-files.outputs.all_changed_files != ''
66-
run: ./vendor/bin/phpstan analyse ${{ inputs.PHPSTAN_ARGS }} ${{ join(steps.changed-files.outputs.all_changed_files, ' ') }} | cs2pr
66+
run: |
67+
./vendor/bin/phpstan analyse ${{ inputs.PHPSTAN_ARGS }} ${{ steps.changed-files.outputs.all_changed_files }} \
68+
| sed 's|name="|name="${{ inputs.WORKING_DIRECTORY }}/|g' \
69+
| cs2pr

0 commit comments

Comments
 (0)