name: Format (PHP)

on:
  push:
    branches:
      - dev
    paths:
      - '**.php'
      - '!vendor/**'

jobs:
  php-cs-fixer:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Install
        run: composer install

      - name: Run php-cs-fixer
        run: composer cs-fix

      - uses: stefanzweifel/git-auto-commit-action@v2.1.0
        with:
          commit_message: Apply php-cs-fixer changes
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

name: Format (PHP)

on:
  push:
    branches:
      - dev
    paths:
      - '**.php'
      - '!vendor/**'

jobs:
  php-cs-fixer:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Install
        run: composer install

      - name: Run php-cs-fixer
        run: composer cs-fix

      - uses: stefanzweifel/git-auto-commit-action@v2.1.0
        with:
          commit_message: Apply php-cs-fixer changes
          branch: ${{ github.head_ref }}
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Add branch in format php workflow
Add branch in format php workflow
