skip sonar analysis for pull requests

This commit is contained in:
Stefan Kalscheuer 2021-05-24 19:54:50 +02:00
parent 5981971ddb
commit e64122a5c6

View File

@ -23,7 +23,7 @@ jobs:
composer test composer test
sed -i "s#<file name=\"${GITHUB_WORKSPACE}#<file name=\"/github/workspace#g" tests-clover.xml sed -i "s#<file name=\"${GITHUB_WORKSPACE}#<file name=\"/github/workspace#g" tests-clover.xml
- name: Analyze with SonarCloud - 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 uses: sonarsource/sonarcloud-github-action@master
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}