Skip to content

Commit b47de2b

Browse files
committed
disable sonar analysis for pull requests
1 parent c1d96b7 commit b47de2b

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,13 @@ jobs:
3131
env:
3232
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3333
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
34-
run: ./gradlew build test jacocoTestReport sonarqube --refresh-dependencies --no-daemon --continue --stacktrace
35-
- name: Execute build test jacocoTestReport and sonar analysis for pull request
34+
run: ./gradlew build test jacocoTestReport sonarqube --refresh-dependencies --no-daemon --continue
35+
- name: Execute build test jacocoTestReport pull request
3636
if: endsWith(github.REF, '/merge') == true
3737
env:
3838
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3939
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
40-
run: ./gradlew build test jacocoTestReport sonarqube
41-
-Dsonar.pullrequest.key=${{ github.event.number }}
42-
-Dsonar.pullrequest.branch=${{ github.HEAD_REF }}
43-
-Dsonar.pullrequest.base=${{ github.BASE_REF }}
44-
-Dsonar.pullrequest.github.repository=${{ github.repository }}
45-
--refresh-dependencies --no-daemon --continue --stacktrace
40+
run: ./gradlew build test jacocoTestReport --refresh-dependencies --no-daemon --continue
4641

4742
release:
4843
if: github.event_name == 'release'

0 commit comments

Comments
 (0)