.github: run Sonar Check only on PRs from apache/cloudstack branches (#8058)

This PR fixes #8050

(cherry picked from commit 864a195868036b367ccf22ec1f26b08ce7d931d7)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
Wei Zhou 2023-10-10 13:58:58 +02:00 committed by Rohit Yadav
parent db54a09860
commit f570934482

View File

@ -28,7 +28,7 @@ concurrency:
jobs:
build:
if: github.repository == 'apache/cloudstack'
if: github.repository == 'apache/cloudstack' && github.event.pull_request.head.repo.full_name == github.repository
name: Sonar JaCoCo Coverage
runs-on: ubuntu-22.04
steps: