Skip to content

A GitHub action to apply PHPCS/PHPCBF fixes (#1) #9

A GitHub action to apply PHPCS/PHPCBF fixes (#1)

A GitHub action to apply PHPCS/PHPCBF fixes (#1) #9

---
name: Polish the code
on:
push:
branches-ignore:
# notest branches to ignore testing of partial online commits
- "notest/**"
pull_request:
branches-ignore:
# notest branches to ignore testing of partial online commits
- "notest/**"
permissions:
# only prettier-fix needs write permission, for others read is enough
contents: read
jobs:
prettier-fix:
# Note: runs-on doesn't accept all expressions, so a string is used
runs-on: "ubuntu-24.04"
permissions:
contents: write
# Limit the running time
timeout-minutes: 10
steps:
- name: Invoke the Prettier fix
uses: WorkOfStan/[email protected]
with:
commit-changes: true
super-linter:
needs: prettier-fix
uses: WorkOfStan/seablast-actions/.github/workflows/[email protected]
with:
runs-on: "ubuntu-24.04"