Skip to content

Commit 19a8c60

Browse files
committed
Nutze Docker-Image von friends-of-php/php-cs-fixer
1 parent dfb47ee commit 19a8c60

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

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

Lines changed: 9 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,19 +10,22 @@ 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
16+
if: github.actor != 'dependabot[bot]'
1317
steps:
1418
- name: Checkout code
1519
uses: actions/checkout@v4
1620
with:
1721
ref: ${{ github.head_ref }}
1822

1923
- name: Run PHP-CS-Fixer
20-
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"
2127

2228
- name: Commit and push back changes
23-
uses: stefanzweifel/git-auto-commit-action@v4
29+
uses: stefanzweifel/git-auto-commit-action@v5
2430
with:
2531
commit_message: "Fix CS with PHP-CS-Fixer"

0 commit comments

Comments
 (0)