-
-
Notifications
You must be signed in to change notification settings - Fork 79
33 lines (25 loc) · 725 Bytes
/
fix-style.yml
File metadata and controls
33 lines (25 loc) · 725 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
name: fix-style
on: [push]
jobs:
cs-fix:
runs-on: ubuntu-latest
steps:
- name: Get branch names
id: branch-name
uses: tj-actions/branch-names@v8
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
- name: Install dependencies
run: composer install
- name: Fix style
run: ./vendor/bin/php-cs-fixer fix --allow-risky=yes --using-cache=no
- name: Commit style fixes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply php-cs-fixer changes