diff --git a/.github/workflows/fix-php-code-style-issues.yml b/.github/workflows/fix-php-code-style-issues.yml index 255506b..39162d0 100644 --- a/.github/workflows/fix-php-code-style-issues.yml +++ b/.github/workflows/fix-php-code-style-issues.yml @@ -4,6 +4,9 @@ on: push: paths: - '**.php' + pull_request: + paths: + - '**.php' permissions: contents: write @@ -16,7 +19,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - ref: ${{ github.head_ref }} + ref: ${{ github.head_ref }} # This ensures you checkout the branch of the pull request - name: Fix PHP code style issues uses: aglipanci/laravel-pint-action@2.4 @@ -25,3 +28,4 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: Fix styling + branch: ${{ github.head_ref }} # This specifies the branch to push changes to