-
-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (32 loc) · 875 Bytes
/
Copy pathpint.yml
File metadata and controls
39 lines (32 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Fix Code Style
on:
push:
jobs:
phplint:
runs-on: ubuntu-latest
permissions:
# Give the default GITHUB_TOKEN write permission to commit and push the
# added or changed files to the repository.
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v6
with:
ref: ${{ github.head_ref }}
persist-credentials: true
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v47
with:
files: |
**.php
- name: "laravel-pint"
uses: aglipanci/laravel-pint-action@v2
with:
preset: laravel
verboseMode: true
onlyDirty: true
- name: Commit linted files
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_message: Fix styling