We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f93b397 + 57b61e7 commit c550ba4Copy full SHA for c550ba4
1 file changed
.github/workflows/php-cs-fixer.yml
@@ -1,7 +1,7 @@
1
on:
2
push:
3
branches:
4
- - release-2.1
+ - release-3.0
5
pull_request:
6
7
name: PHP Check
@@ -14,9 +14,12 @@ jobs:
14
15
- name: Get changed files
16
id: changed-files
17
- uses: tj-actions/changed-files@v42
18
- with:
19
- files: '*.php'
+ run: |
+ if ${{ github.event_name == 'pull_request' }}; then
+ 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
23
24
- name: Get extra arguments for PHP-CS-Fixer
25
id: phpcs-intersection
0 commit comments