Skip to content
This repository was archived by the owner on Dec 19, 2023. It is now read-only.

Commit 06c23a1

Browse files
ci: skip sonar check if no Sonar token is provided
This prevents running (and failing) this task on master branch of forks.
1 parent 7c28edd commit 06c23a1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,5 @@ jobs:
9696
env:
9797
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
9898
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
99+
if: env.SONAR_TOKEN != null
99100
run: ./gradlew build jacocoTestReport sonarqube --info

0 commit comments

Comments
 (0)