Skip to content

Commit

Permalink
Merge pull request #130 from spdx/issue129
Browse files Browse the repository at this point in the history
Check for sonar credentials in Github Action
  • Loading branch information
goneall authored Mar 23, 2022
2 parents b8718c7 + 552c8de commit 716669b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,9 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar
run: |
if [[ $SONAR_TOKEN != "" ]]; then
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent install sonar:sonar
else
mvn --batch-mode --update-snapshots verify
fi

0 comments on commit 716669b

Please # to comment.