Merge pull request #5 from tomatophp/v2.2 #1
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: 'PHP Code Styling' | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- '**.php' | |
permissions: | |
contents: write | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Fix PHP code style issues | |
uses: aglipanci/laravel-pint-action@v2 | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "Format Code" | |
commit_user_name: 'GitHub Actions' |