Files
plugin-skeleton/.github/workflows/fix-code-style.yml
dependabot[bot] 8510e513c0 chore(deps): bump actions/checkout from 6.0.2 to 6.0.3 (#90)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.2 to 6.0.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](de0fac2e45...df4cb1c069)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 6.0.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-10 10:54:35 +01:00

43 lines
1.2 KiB
YAML

name: fix-code-style
on:
push:
paths:
- '**.php'
permissions:
contents: write
jobs:
fix-code-style:
runs-on: ubuntu-latest
steps:
# persist-credentials: true is required so `git-auto-commit-action` below
# can push the reformatted files back to the branch.
- name: Checkout code
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.2 # zizmor: ignore[artipacked]
- name: Cache Composer dependencies
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: ~/.composer/cache/files
key: composer-cs-${{ hashFiles('composer.json') }}
restore-keys: |
composer-cs-
- name: Setup PHP
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
with:
php-version: 8.4
- name: Install dependencies
run: composer install --no-interaction --no-scripts
- name: Run Pint
run: ./vendor/bin/pint
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@04702edda442b2e678b25b537cec683a1493fcb9 # v7.1.0
with:
commit_message: Fix styling