Skip to content

Commit f12c1cd

Browse files
authored
Update PHP-CS-Fixer workflow (#1734)
1 parent 05a1552 commit f12c1cd

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

.github/workflows/php-cs-fixer.yaml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,17 @@ on:
55
branches:
66
- "[0-9]+.[0-9]+"
77
- "[0-9]+.x"
8-
- "*_actions"
9-
- "feature-*"
10-
pull_request_target:
11-
types: [ opened,closed,synchronize ]
128

139
permissions:
1410
contents: write
1511

1612
jobs:
1713
php-style:
1814
uses: pimcore/workflows-collection-public/.github/workflows/reusable-php-cs-fixer.yaml@main
15+
if: github.repository_owner == 'pimcore'
1916
secrets:
2017
PHP_CS_FIXER_GITHUB_TOKEN: ${{ secrets.PHP_CS_FIXER_GITHUB_TOKEN }}
2118
with:
22-
head_ref: ${{ github.event.pull_request.head.ref }}
23-
repository: ${{ github.event.pull_request.head.repo.full_name }}
24-
config_file: .php-cs-fixer.dist.php
19+
head_ref: ${{ github.head_ref || github.ref_name }}
20+
repository: ${{ github.repository }}
21+
config_file: .php-cs-fixer.dist.php

0 commit comments

Comments
 (0)