Skip to content

Check if it's an API route *before* checking if it's a CP route. #2951

Check if it's an API route *before* checking if it's a CP route.

Check if it's an API route *before* checking if it's a CP route. #2951

Workflow file for this run

name: Fix PHP code style issues
on:
push:
paths:
- '**.php'
permissions:
contents: write
jobs:
fix-php-code-styling:
runs-on: ubuntu-latest
if: github.repository_owner == 'statamic'
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.PINT }}
- name: Fix PHP code style issues
uses: aglipanci/laravel-pint-action@v2
with:
pintVersion: 1.16.0
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Fix styling