Skip to content

Commit 4790212

Browse files
authored
Merge pull request #273 from mgovers/main
Only run sonar cloud when PGM org is repo owner
2 parents 11e5326 + 4e23b80 commit 4790212

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/build-test-and-sonar.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ jobs:
8787
sed -i 's@/home/runner/work/power-grid-model-io/power-grid-model-io@/github/workspace@g' coverage.xml
8888
8989
- name: SonarCloud Scan
90+
if: ${{ (github.event_name == 'push') || (github.event.pull_request.head.repo.owner.login == 'PowerGridModel') }}
9091
uses: SonarSource/sonarcloud-github-action@master
9192
env:
9293
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)