From 2e9fc66b26b0f58cddbc813b8f10d9e9c18c2c4c Mon Sep 17 00:00:00 2001 From: berfinyuksel <99557970+berfinyuksel@users.noreply.github.com> Date: Fri, 27 Mar 2026 11:08:08 +0100 Subject: [PATCH] Update PHP-CS-Fixer workflow --- .github/workflows/php-cs-fixer.yaml | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/.github/workflows/php-cs-fixer.yaml b/.github/workflows/php-cs-fixer.yaml index b20386d..74c9a01 100644 --- a/.github/workflows/php-cs-fixer.yaml +++ b/.github/workflows/php-cs-fixer.yaml @@ -1,24 +1,21 @@ name: "PHP-CS-Fixer" on: - pull_request_target: - types: [ opened,closed,synchronize ] push: branches: - "[0-9]+.[0-9]+" - "[0-9]+.x" - - "*_actions" - - "feature-*" - - + permissions: contents: write jobs: php-style: uses: pimcore/workflows-collection-public/.github/workflows/reusable-php-cs-fixer.yaml@main + if: github.repository_owner == 'pimcore' secrets: PHP_CS_FIXER_GITHUB_TOKEN: ${{ secrets.PHP_CS_FIXER_GITHUB_TOKEN }} with: - head_ref: ${{ github.event.pull_request.head.ref }} - repository: ${{ github.event.pull_request.head.repo.full_name }} - config_file: .php-cs-fixer.dist.php \ No newline at end of file + head_ref: ${{ github.head_ref || github.ref_name }} + repository: ${{ github.repository }} + config_file: .php-cs-fixer.dist.php