From 03a45bcab8c6a387b3b00110b2db3bd6c78252b5 Mon Sep 17 00:00:00 2001 From: Nicolas Henneaux Date: Thu, 18 Jan 2024 20:43:22 +0100 Subject: [PATCH] Sonar on Ubuntu - Java 21 only --- .github/workflows/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bbaaced..7f82580 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -49,6 +49,7 @@ jobs: restore-keys: ${{ runner.os }}-m2 - name: Build with Maven run: mvn -B -C verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar "-Dsonar.projectKey=nhenneaux_resilient-httpclient" + if: ${{ matrix.java }} == 21 $$ ${{ matrix.os }} == "ubuntu-latest" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}