Skip to content

TASK: Inject Logger for custom task #779

TASK: Inject Logger for custom task

TASK: Inject Logger for custom task #779

Workflow file for this run

name: Format (PHP)
on:
pull_request:
branches:
- master
- 2.0
jobs:
php-cs-fixer:
runs-on: ubuntu-latest
# dont run jobs on forks, because we are not allowed to commit
# workaround for missing secret in fork PRs - see https://github.com/actions/checkout/issues/298
# see https://github.com/rectorphp/rector/commit/d395e1c28b8e6a56711dcc2e10490a82965850e4
if: github.event.pull_request.draft == false && github.repository == 'TYPO3/Surf' && github.actor != 'dependabot[bot]'
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.PHP_CS_FIXER }}
ref: ${{ github.head_ref }}
- uses: shivammathur/setup-php@v2
with:
php-version: 7.4
coverage: none # disable xdebug, pcov
- uses: "ramsey/composer-install@v2"
- name: Run php-cs-fixer
run: vendor/bin/php-cs-fixer fix --diff
- name: Commit changed files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Apply php-cs-fixer changes
branch: ${{ github.head_ref }}