diff --git a/.github/workflows/cla.yml b/.github/workflows/cla.yml index 42a997f..ec376e9 100644 --- a/.github/workflows/cla.yml +++ b/.github/workflows/cla.yml @@ -1,14 +1,14 @@ name: CLA check on: - issue_comment: - types: [created] - pull_request_target: - types: [opened, closed, synchronize] + issue_comment: + types: [created] + pull_request_target: + types: [opened, closed, synchronize] jobs: - cla-workflow: - uses: pimcore/workflows-collection-public/.github/workflows/reusable-cla-check.yaml@v1.3.0 - if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' - secrets: - CLA_ACTION_ACCESS_TOKEN: ${{ secrets.CLA_ACTION_ACCESS_TOKEN }} \ No newline at end of file + cla-workflow: + uses: pimcore/workflows-collection-public/.github/workflows/reusable-cla-check.yaml@main + if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target' + secrets: + CLA_ACTION_ACCESS_TOKEN: ${{ secrets.CLA_ACTION_ACCESS_TOKEN }} diff --git a/.github/workflows/php-cs-fixer.yaml b/.github/workflows/php-cs-fixer.yaml index dc1a744..f2d696e 100644 --- a/.github/workflows/php-cs-fixer.yaml +++ b/.github/workflows/php-cs-fixer.yaml @@ -1,23 +1,20 @@ 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.head_ref || github.ref_name }} - repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }} - config_file: .php-cs-fixer.dist.php \ No newline at end of file + repository: ${{ github.repository }} + config_file: .php-cs-fixer.dist.php