Skip to content

Commit ff1ef21

Browse files
committed
Revert "Add style fixer workflow"
This reverts commit f9e1b00.
1 parent f9e1b00 commit ff1ef21

1 file changed

Lines changed: 30 additions & 12 deletions

File tree

.github/workflows/fix-style.yml

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,47 @@
1-
name: fix-style
1+
name: Fix Style
22

33
on:
44
push:
5-
paths:
6-
- '**.php'
5+
branches:
6+
- master
77
workflow_dispatch:
88

99
permissions:
1010
contents: write
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
13-
php-code-styling:
17+
fix-style:
18+
name: Fix Style
1419
runs-on: ubuntu-latest
15-
timeout-minutes: 5
20+
timeout-minutes: 10
1621

1722
steps:
18-
- name: Checkout code
23+
- name: Checkout
1924
uses: actions/checkout@v4
2025
with:
21-
ref: ${{ github.head_ref }}
26+
token: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Setup PHP
29+
uses: shivammathur/setup-php@v2
30+
with:
31+
php-version: '8.4'
32+
tools: composer:v2
33+
coverage: none
34+
35+
- name: Validate composer files
36+
run: composer validate --strict --no-check-publish
37+
38+
- name: Install dependencies
39+
run: composer install --prefer-dist --no-interaction --no-progress
2240

23-
- name: Fix PHP code style issues
24-
uses: aglipanci/laravel-pint-action@2.5
41+
- name: Run Pint
42+
run: ./vendor/bin/pint
2543

26-
- name: Commit changes
27-
uses: stefanzweifel/git-auto-commit-action@v5
44+
- name: Commit style fixes
45+
uses: stefanzweifel/git-auto-commit-action@v6
2846
with:
29-
commit_message: Fix styling
47+
commit_message: Fix code style

0 commit comments

Comments
 (0)