Skip to content

Commit 24f5c80

Browse files
committed
Update GH action
1 parent 84bb4ac commit 24f5c80

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@ jobs:
1515
with:
1616
java-version: '8'
1717
- name: Analyze with SonarCloud
18-
run: mvn -B verify sonar:sonar -Dsonar.projectKey=tupilabs_HumanNameParser.java -Dsonar.organization=tupilabs -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN
18+
run: |
19+
if ["$SONAR_TOKEN" != ""]; then
20+
mvn -B verify sonar:sonar -Dsonar.projectKey=tupilabs_HumanNameParser.java -Dsonar.organization=tupilabs -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=$SONAR_TOKEN || true
21+
fi
1922
env:
2023
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2124
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
22-
23-

0 commit comments

Comments
 (0)