Restrict comment_author to name fields #2827
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the main branch | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [ opened, labeled, synchronize ] | |
name: Inspections | |
jobs: | |
runPHPCSFixerInspection: | |
if: contains(github.event.pull_request.labels.*.name, 'run analysis') | |
name: Run PHP CS Fixer inspection | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Install dependencies | |
run: composer install --dev --prefer-dist --no-progress | |
- name: PHPCSFixer check | |
run: ./vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --dry-run --verbose |