Bump phpoffice/phpspreadsheet from 1.29.4 to 1.29.7 in /src #571
Workflow file for this run
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
name: Fix code styling | |
on: | |
push: | |
pull_request_target: | |
workflow_dispatch: | |
inputs: | |
php: | |
description: 'Php version' | |
default: "8.3" | |
type: string | |
message: | |
description: 'Commit message' | |
default: Fix code styling. | |
type: string | |
jobs: | |
laravel-pint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
ref: ${{ github.head_ref }} | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ inputs.php || 8.3 }} | |
extensions: json, dom, curl, libxml, mbstring | |
coverage: none | |
- name: Install Pint | |
run: composer global require laravel/pint | |
- name: Run Pint | |
run: pint --config ./formaters/pint.json | |
- name: Install NPM dependencies | |
run: npm ci -C ./src | |
- name: Copy blade-formatter config to root dir | |
run: | | |
cp formaters/.bladeformatterrc.json ./ | |
cp formaters/.bladeignore ./ | |
- name: Run Blade Formatter | |
run: | | |
src/node_modules/.bin/blade-formatter --write \ | |
src/resources/views/*.blade.php \ | |
src/resources/views/**/*.blade.php | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: ${{ inputs.message }} Format ${{ github.actor }} code |