Skip to content

[TASK] Allow newer symfony and neos utilities versions #792

[TASK] Allow newer symfony and neos utilities versions

[TASK] Allow newer symfony and neos utilities versions #792

Workflow file for this run

name: Format (PHP)
on:
pull_request:
branches:
- main
- 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 }}