Skip to content

Commit 37d7975

Browse files
committed
DId not mean to send that up, testing for fixing the bug with that.
1 parent adb514d commit 37d7975

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/php-cs-fixer.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ jobs:
1919
- name: Get extra arguments for PHP-CS-Fixer
2020
id: phpcs-intersection
2121
run: |
22-
CHANGED_FILES=$(echo "${{ steps.changed-files.outputs.all_changed_and_modified_files }}" | grep '.php$' | tr ' ' '\n')
23-
CHANGED_FILES=$(echo -e "${CHANGED_FILES}" | while IFS= read -r file; do echo "$file" | test -f "$file" && echo "$file"; done)
22+
CHANGED_FILES=$(echo "${{ steps.changed-files.outputs.all_changed_and_modified_files }}" | tr ' ' '\n')
2423
if ! echo "${CHANGED_FILES}" | grep -qE "^(\\.php-cs-fixer(\\.dist)?\\.php|composer\\.lock)$"; then EXTRA_ARGS=$(printf -- '--path-mode=intersection\n--\n%s' "${CHANGED_FILES}"); else EXTRA_ARGS=''; fi
2524
echo "PHPCS_EXTRA_ARGS<<EOF" >> $GITHUB_ENV
2625
echo "$EXTRA_ARGS" >> $GITHUB_ENV

0 commit comments

Comments
 (0)