diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index 1d21635..c054b93 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -60,11 +60,14 @@ jobs: # ------------------------------------------------------------------------------ - name: Check for spaces in file paths run: | + # Check for spaces in each file path echo "$CHANGED_FILES" | while read -r file; do - if [[ "$file" =~ \ ]]; then - echo "Error: No files may contain spaces in their paths: $file" - exit 1 - fi + if [[ "$file" =~ \ ]]; then + echo "Error: No files may contain spaces in their paths:" + echo $file + exit 1 + fi + done # ------------------------------------------------------------------------------ # PHPCS # ------------------------------------------------------------------------------