We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 425cf52 commit 1e52320Copy full SHA for 1e52320
.github/workflows/php-cs-fixer.yml
@@ -19,8 +19,7 @@ jobs:
19
- name: Get extra arguments for PHP-CS-Fixer
20
id: phpcs-intersection
21
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)
+ CHANGED_FILES=$(echo "${{ steps.changed-files.outputs.all_changed_and_modified_files }}" | tr ' ' '\n')
24
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
25
echo "PHPCS_EXTRA_ARGS<<EOF" >> $GITHUB_ENV
26
echo "$EXTRA_ARGS" >> $GITHUB_ENV
0 commit comments