Skip to content

Commit 33a06ed

Browse files
authored
Merge pull request #133 from pimcore/chore/update-php-cs-fixer-workflow
Update PHP-CS-Fixer workflow
2 parents cdb1dfe + 2e9fc66 commit 33a06ed

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed
Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
name: "PHP-CS-Fixer"
22

33
on:
4-
pull_request_target:
5-
types: [ opened,closed,synchronize ]
64
push:
75
branches:
86
- "[0-9]+.[0-9]+"
97
- "[0-9]+.x"
10-
- "*_actions"
11-
- "feature-*"
12-
-
8+
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)