Skip to content

Commit 6e0352f

Browse files
authored
[6.x] Only run lint workflow if php files have been changed (#13734)
1 parent 6defb42 commit 6e0352f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/code-style-lint.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,15 @@ jobs:
1111
- name: Checkout code
1212
uses: actions/checkout@v4
1313

14+
- name: Get changed files
15+
id: changed-files
16+
uses: tj-actions/changed-files@v46
17+
with:
18+
files: |
19+
**.php
20+
1421
- name: Check PHP code style issues
22+
if: steps.changed-files.outputs.any_modified == 'true'
1523
uses: aglipanci/laravel-pint-action@v2
1624
with:
1725
testMode: true

0 commit comments

Comments
 (0)