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 dfb47ee commit 19a8c60
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/fix-cs-php.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Update this by running
# curl https://gist.github.com/mpdude/ca93a185bcbf56eb7e341632ad4f8263/raw/fix-cs-php.yml > .github/workflows/fix-cs-php.yml

on:
push:
branches:
Expand All @@ -7,19 +10,22 @@ 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]'
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
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 19a8c60

Please # to comment.