👷 CI: Run Pint (#3088)
This commit is contained in:
28
.github/workflows/formatting.yml
vendored
Normal file
28
.github/workflows/formatting.yml
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
name: Formatting
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
format:
|
||||||
|
name: Formatting
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
if: "!contains(github.event.head_commit.message, '[ci skip]')"
|
||||||
|
steps:
|
||||||
|
- name: Checkout the project
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
|
|
||||||
|
- name: Run Laravel Pint
|
||||||
|
uses: aglipanci/laravel-pint-action@1.0.0
|
||||||
|
with:
|
||||||
|
preset: laravel
|
||||||
|
|
||||||
|
- name: Commit changes
|
||||||
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
with:
|
||||||
|
commit_message: 🎨 Run Pint
|
||||||
|
skip_fetch: true
|
||||||
Reference in New Issue
Block a user