Merge pull request #1120 from andrey-helldar/patch/2024-03-15/17-42 #135
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Style | |
on: | |
push: | |
paths: | |
- '**.php' | |
- 'code-style.yml' | |
jobs: | |
code-style: | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
name: "Laravel Pint (Style)" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: "Laravel Pint" | |
uses: aglipanci/[email protected] | |
with: | |
preset: laravel | |
- name: Commit changes to GitHub | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Fix styling | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |