Skip to content

Commit c550ba4

Browse files
authored
Merge pull request #8507 from jdarwood007/fixRunner
Remove tj-actions/changed-files
2 parents f93b397 + 57b61e7 commit c550ba4

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

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

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
on:
22
push:
33
branches:
4-
- release-2.1
4+
- release-3.0
55
pull_request:
66

77
name: PHP Check
@@ -14,9 +14,12 @@ jobs:
1414

1515
- name: Get changed files
1616
id: changed-files
17-
uses: tj-actions/changed-files@v42
18-
with:
19-
files: '*.php'
17+
run: |
18+
if ${{ github.event_name == 'pull_request' }}; then
19+
echo "all_changed_files_count=$(git diff --name-only -r HEAD^1 HEAD | xargs | grep '\.php$')" >> $GITHUB_OUTPUT
20+
else
21+
echo "all_changed_files_count=$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | xargs | grep '\.php$')" >> $GITHUB_OUTPUT
22+
fi
2023
2124
- name: Get extra arguments for PHP-CS-Fixer
2225
id: phpcs-intersection

0 commit comments

Comments
 (0)