Skip to content

Commit e8a45cb

Browse files
Do not run Sonar analysis for pull requests (#997)
1 parent 564a241 commit e8a45cb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/github.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282

8383
sonar:
8484
needs: build
85+
if: github.event_name != 'pull_request'
8586
runs-on: ubuntu-latest
8687
steps:
8788
- uses: actions/checkout@v2
@@ -117,4 +118,5 @@ jobs:
117118
- name: Generate and publish Sonar report
118119
run: ./gradlew sonarqube -Dsonar.projectKey=kobylynskyi_graphql-java-codegen -Dsonar.organization=kobylynskyi -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_LOGIN }} --stacktrace
119120
env:
120-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
121+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
122+

0 commit comments

Comments
 (0)