mirror of
https://github.com/filamentphp/plugin-skeleton.git
synced 2026-06-21 04:09:48 +08:00
Merge branch '3.x' into 4.x
This commit is contained in:
42
.github/workflows/fix-code-style.yml
vendored
Normal file
42
.github/workflows/fix-code-style.yml
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
name: fix-code-style
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- '**.php'
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
|
||||
jobs:
|
||||
fix-code-style:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
# persist-credentials: true is required so `git-auto-commit-action` below
|
||||
# can push the reformatted files back to the branch.
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 # zizmor: ignore[artipacked]
|
||||
|
||||
- name: Cache Composer dependencies
|
||||
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
|
||||
with:
|
||||
path: ~/.composer/cache/files
|
||||
key: composer-cs-${{ hashFiles('composer.json') }}
|
||||
restore-keys: |
|
||||
composer-cs-
|
||||
|
||||
- name: Setup PHP
|
||||
uses: shivammathur/setup-php@accd6127cb78bee3e8082180cb391013d204ef9f # 2.37.0
|
||||
with:
|
||||
php-version: 8.4
|
||||
|
||||
- name: Install dependencies
|
||||
run: composer install --no-interaction --no-scripts
|
||||
|
||||
- name: Run Pint
|
||||
run: ./vendor/bin/pint
|
||||
|
||||
- name: Commit changes
|
||||
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
|
||||
with:
|
||||
commit_message: Fix styling
|
||||
Reference in New Issue
Block a user