This commit is contained in:
Laurent Destailleur
2026-01-19 16:20:55 +01:00
parent 2a2bc335c8
commit af24facf4a
2 changed files with 4 additions and 3 deletions

View File

@@ -53,8 +53,8 @@ jobs:
- name: Get changed PHP files
id: files
# shellcheck disable=2086
run: |
# shellcheck disable=2086
git fetch origin ${{ github.base_ref }}
FILES=$(git diff --name-only origin/${{ github.base_ref }}...HEAD | grep '\.php$' || true)
PHP_FILES=$(echo "$FILES" | grep '\.php$' || true)

View File

@@ -70,13 +70,14 @@ jobs:
id: files
# shellcheck disable=SC2086
run: |
# shellcheck disable=SC2086
git fetch origin ${{ github.base_ref }}
FILES=$(git diff --name-only origin/${{ github.base_ref }}...HEAD | grep '\.php$' || true)
FILES=$(git diff --name-only "origin/${{ github.base_ref }}...HEAD" | grep '\.php$' || true)
{
echo "files<<EOF"
echo "$FILES"
echo "EOF"
} >> $GITHUB_OUTPUT
} > "$GITHUB_OUTPUT"
# Run PHPStan
- name: Run PHPStan