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. # zizmor: ignore[artipacked] - name: Checkout code uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 - name: Cache Composer dependencies uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: path: ~/.composer/cache/files key: composer-cs-${{ hashFiles('composer.json') }} restore-keys: | composer-cs- - name: Setup PHP uses: shivammathur/setup-php@f3e473d116dcccaddc5834248c87452386958240 # 2.37.2 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