Skip to content

Commit f9c4f2e

Browse files
committed
Laravel Pint: Automatically fix code style
GitHub Actions isn't able to fix code style issues on forks though. See statamic/cms#8379 for context.
1 parent c1a9af5 commit f9c4f2e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/pint-fix.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Fix PHP code style issues
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.php'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
fix-php-code-styling:
13+
runs-on: ubuntu-latest
14+
if: github.repository_owner == 'statamic'
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
with:
20+
ref: ${{ github.head_ref }}
21+
token: ${{ secrets.PINT }}
22+
23+
- name: Fix PHP code style issues
24+
uses: aglipanci/[email protected]
25+
26+
- name: Commit changes
27+
uses: stefanzweifel/git-auto-commit-action@v4
28+
with:
29+
commit_message: Fix styling

0 commit comments

Comments
 (0)