Skip to content

Update GitHub workflow config #117

Update GitHub workflow config

Update GitHub workflow config #117

Workflow file for this run

name: Format (PHP)
on:
push:
branches:
- '1.2'
pull_request:
paths:
- '**.php'
# Allow manually triggering the workflow.
workflow_dispatch:
jobs:
php-cs-fixer:
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v4
# with:
# ref: ${{ github.head_ref }}
- uses: actions/cache@v4
with:
path: .php-cs-fixer.cache
key: ${{ runner.OS }}-${{ github.repository }}-phpcsfixer-${{ github.sha }}
restore-keys: |
${{ runner.OS }}-${{ github.repository }}-phpcsfixer-
- name: PHP-CS-Fixer
uses: docker://oskarstark/php-cs-fixer-ga
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Apply php-cs-fixer changes
file_pattern: '*.php'