From edaa1de42520658a337930e8b2cd32259de9212c Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Tue, 27 Aug 2024 09:37:59 +0200 Subject: [PATCH] Nutze Docker-Image von friends-of-php/php-cs-fixer --- .github/workflows/fix-cs-php.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/fix-cs-php.yml b/.github/workflows/fix-cs-php.yml index 8d9f924..fc9f2bd 100644 --- a/.github/workflows/fix-cs-php.yml +++ b/.github/workflows/fix-cs-php.yml @@ -1,5 +1,5 @@ # Update this by running -# curl https://gist.githubusercontent.com/mpdude/ca93a185bcbf56eb7e341632ad4f8263/raw/fix-cs-php.yml > .github/workflows/fix-cs-php.yml +# curl https://gist.github.com/mpdude/ca93a185bcbf56eb7e341632ad4f8263/raw/fix-cs-php.yml > .github/workflows/fix-cs-php.yml on: push: @@ -10,7 +10,7 @@ on: name: Coding Standards jobs: - open-pr-for-cs-violations: + fix-cs-issues: name: PHP-CS-Fixer runs-on: ubuntu-22.04 if: github.actor != 'dependabot[bot]' @@ -21,9 +21,11 @@ jobs: ref: ${{ github.head_ref }} - name: Run PHP-CS-Fixer - uses: docker://ghcr.io/webfactory/php-cs-fixer:3.62.0 + uses: docker://ghcr.io/php-cs-fixer/php-cs-fixer:3.62.0-php8.3 + with: + args: "fix --show-progress=dots" - name: Commit and push back changes - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: - commit_message: "Fix CS with PHP-CS-Fixer 2.19.0" + commit_message: "Fix CS with PHP-CS-Fixer"