Don't deploy to sonar in forks (#8856)

This commit is contained in:
sbu 2021-02-27 20:22:34 +01:00 committed by GitHub
parent 2c0991dabe
commit 6f413f6aca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,4 +22,5 @@ jobs:
- name: Jacoco Aggregate
run: mvn jacoco:report-aggregate
- name: Publish to Sonar
if: github.event.pull_request.head.repo.full_name == github.repository
run: mvn -B -q -nsu sonar:sonar -Dsonar.projectKey=OpenAPITools_openapi-generator -Dsonar.organization=openapitools -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_LOGIN }} -Dsonar.branch.name=${GITHUB_REF##*/}