Skip to content

Commit 2ab93b6

Browse files
committed
Add code formatting
Signed-off-by: Scott Robinson <[email protected]>
1 parent f5a5324 commit 2ab93b6

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/format_php

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Format (PHP)
2+
3+
on:
4+
push:
5+
paths:
6+
- '**.php'
7+
8+
jobs:
9+
php-cs-fixer:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v1
13+
14+
- name: Install
15+
run: composer install
16+
17+
- name: Run php-cs-fixer
18+
run: ./vendor/bin/php-cs-fixer fix
19+
20+
- uses: stefanzweifel/[email protected]
21+
with:
22+
commit_message: Apply php-cs-fixer changes
23+
branch: ${{ github.head_ref }}
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
26+

0 commit comments

Comments
 (0)