Skip to content

Commit

Permalink
Nutze Docker-Image von friends-of-php/php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude committed Aug 27, 2024
1 parent 1b951f5 commit 10dcc10
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/fix-cs-php.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Update this by running
# curl https://gist.githubusercontent.com/mpdude/ca93a185bcbf56eb7e341632ad4f8263/raw/fix-cs-php.yml > .github/workflows/fix-cs-php.yml
# curl https://gist.github.com/mpdude/ca93a185bcbf56eb7e341632ad4f8263/raw/fix-cs-php.yml > .github/workflows/fix-cs-php.yml

on:
push:
Expand All @@ -10,7 +10,7 @@ on:
name: Coding Standards

jobs:
open-pr-for-cs-violations:
fix-cs-issues:
name: PHP-CS-Fixer
runs-on: ubuntu-22.04
if: github.actor != 'dependabot[bot]'
Expand All @@ -21,9 +21,11 @@ jobs:
ref: ${{ github.head_ref }}

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

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

0 comments on commit 10dcc10

Please sign in to comment.