Skip to content

Commit

Permalink
Use CS fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenvanassche committed Mar 1, 2024
1 parent 841f6d2 commit 60a0ed3
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,23 @@
name: Fix PHP code style issues
name: Check & fix styling

on:
push:
paths:
- '**.php'

permissions:
contents: write
on: [push]

jobs:
php-code-styling:
php-cs-fixer:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Fix PHP code style issues
uses: aglipanci/[email protected]
- name: Run PHP CS Fixer
uses: docker://oskarstark/php-cs-fixer-ga
with:
args: --config=.php-cs-fixer.dist.php --allow-risky=yes

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Fix styling

0 comments on commit 60a0ed3

Please sign in to comment.