From 9dd544ce8847bfc515e95717415c23a7a9c0685f Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Sun, 26 Apr 2026 14:29:30 +0300 Subject: [PATCH] Update CS GitHub action --- .github/workflows/cs.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cs.yml b/.github/workflows/cs.yml index d4e92c9..d258a46 100644 --- a/.github/workflows/cs.yml +++ b/.github/workflows/cs.yml @@ -1,7 +1,7 @@ name: Code Style on: - pull_request_target: + pull_request: paths-ignore: - 'docs/**' - 'README.md' @@ -18,10 +18,6 @@ jobs: steps: - name: Checkout code uses: actions/checkout@v6 - with: - token: ${{ secrets.YIISOFT_GITHUB_TOKEN }} - ref: ${{ github.head_ref }} - repository: ${{ github.event.pull_request.head.repo.full_name }} - name: Install PHP uses: shivammathur/setup-php@v2 @@ -31,7 +27,7 @@ jobs: coverage: none - name: Install Composer dependencies - uses: "ramsey/composer-install@v3" + uses: "ramsey/composer-install@v4" - name: Run PHP CS Fixer run: ./vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php @@ -40,7 +36,7 @@ jobs: run: ./vendor/bin/rector --output-format=github - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v5 + uses: stefanzweifel/git-auto-commit-action@v7 with: commit_message: "Apply PHP CS Fixer and Rector changes (CI)" file_pattern: '*.php'