Skip to content

Commit

Permalink
feat: add run-pint.yml
Browse files Browse the repository at this point in the history
The new workflow fix code styling with the PHP code
  • Loading branch information
asciito committed Oct 8, 2023
1 parent b4a444e commit 11bdaeb
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/run-pint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Fix PHP code style
run-name: Fixing style on ${{ github.ref_name }}
on:
push:
paths:
- "**.php"

jobs:
pint-code-style:
runs-on: ubuntu-latest

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

- name: Fix PHP code style
uses: aglipanci/laravel-pint-action@2.3.0
with:
preset: laravel

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "chore: fix styling"

0 comments on commit 11bdaeb

Please sign in to comment.