brandon14/fossabot-commander

View on GitHub
.github/workflows/php-cs-fixer.yml

Summary

Maintainability
Test Coverage
name: php-cs-fixer

on:
  push:
    branches-ignore:
      - main
      - 1.0-dev

jobs:
  php-cs-fixer:
    runs-on: ubuntu-latest
    permissions:
      # Give the default GITHUB_TOKEN write permission to commit and push the
      # added or changed files to the repository.
      contents: write

    steps:
      - name: Checkout code
        uses: actions/checkout@v4
        with:
          ref: ${{ github.head_ref }}

      - name: Run PHP CS Fixer
        uses: docker://oskarstark/php-cs-fixer-ga
        with:
          args: --config=.php-cs-fixer.dist.php --allow-risky=yes

      - name: Commit changes
        uses: stefanzweifel/git-auto-commit-action@v5
        with:
          commit_message: "chore: Fix styling from PHP-CS-Fixer"