diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f772715..d929e55 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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