Skip to content

Commit

Permalink
fix: linting workflow (#499)
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ authored Feb 24, 2025
1 parent a2183f2 commit cea2b0d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/fix-php-code-style-issues.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: Fix PHP code style issues
# Check and fix PHP code style issues
# Pull request: automatically fix PHP code style issues
# Main branch: only check PHP code style issues since we don't have write permission
name: Check and fix PHP code style issues

on:
push:
paths:
- '**.php'
pull_request:
paths:
- '**.php'

permissions:
contents: write
Expand All @@ -18,10 +24,20 @@ jobs:
with:
ref: ${{ github.head_ref }}

- name: Check PHP code style issues
if: github.event_name == 'push'
uses: aglipanci/[email protected]
with:
verboseMode: true
testMode: true

- name: Fix PHP code style issues
if: github.event_name == 'pull_request'
uses: aglipanci/[email protected]

- name: Commit changes
if: github.event_name == 'pull_request'
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Fix styling

0 comments on commit cea2b0d

Please sign in to comment.