Skip to content

Commit bbc7342

Browse files
committed
Update PHP-CS-Fixer workflow
1 parent 109e39e commit bbc7342

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/fix-cs-php.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Update this by running
2+
# curl https://gist.github.com/mpdude/ca93a185bcbf56eb7e341632ad4f8263/raw/fix-cs-php.yml > .github/workflows/fix-cs-php.yml
3+
14
on:
25
push:
36
branches:
@@ -7,7 +10,7 @@ on:
710
name: Coding Standards
811

912
jobs:
10-
open-pr-for-cs-violations:
13+
fix-cs-issues:
1114
name: PHP-CS-Fixer
1215
runs-on: ubuntu-22.04
1316
if: github.actor != 'dependabot[bot]'
@@ -18,9 +21,11 @@ jobs:
1821
ref: ${{ github.head_ref }}
1922

2023
- name: Run PHP-CS-Fixer
21-
uses: docker://ghcr.io/webfactory/php-cs-fixer:3.62.0
24+
uses: docker://ghcr.io/php-cs-fixer/php-cs-fixer:3.62.0-php8.3
25+
with:
26+
args: "fix --show-progress=dots"
2227

2328
- name: Commit and push back changes
24-
uses: stefanzweifel/git-auto-commit-action@v4
29+
uses: stefanzweifel/git-auto-commit-action@v5
2530
with:
2631
commit_message: "Fix CS with PHP-CS-Fixer"

0 commit comments

Comments
 (0)