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