diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5f9e1d8..6c690ea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,7 +23,7 @@ jobs: composer test sed -i "s#<file name=\"${GITHUB_WORKSPACE}#<file name=\"/github/workspace#g" tests-clover.xml - name: Analyze with SonarCloud - if: matrix.php == '8.0' + if: matrix.php == '8.0' && github.event_name != 'pull_request' uses: sonarsource/sonarcloud-github-action@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}