diff --git a/.github/workflows/fix-php-code-styling.yml b/.github/workflows/fix-php-code-styling.yml index 89cf9c9..7e95415 100644 --- a/.github/workflows/fix-php-code-styling.yml +++ b/.github/workflows/fix-php-code-styling.yml @@ -1,7 +1,11 @@ -name: "Fix PHP Code Styling" +name: "Fix PHP code styling" on: - push: + pull_request: + branches: + - 2.x + types: + - closed paths: - '**.php' @@ -9,9 +13,9 @@ permissions: contents: write jobs: - php-code-styling: + if_merged: + if: github.event.pull_request.merged == true runs-on: ubuntu-latest - steps: - name: Checkout code uses: actions/checkout@v4 @@ -24,4 +28,4 @@ jobs: - name: Commit changes uses: stefanzweifel/git-auto-commit-action@v5 with: - commit_message: Fix styling \ No newline at end of file + commit_message: "Chore: Fix PHP code styling"