Skip to content

Commit a7dc0eb

Browse files
authored
Fix condition for Sonar
1 parent f6a4576 commit a7dc0eb

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,17 @@ jobs:
3434
java-version: ${{ matrix.java }}
3535
architecture: ${{ matrix.arch }}
3636

37-
- name: Build with Maven
38-
if: matrix.arch != 'x64' && matrix.os != 'ubuntu-latest' && matrix.java != '11'
39-
run: mvn verify -B -"Dgpg.skip"
40-
4137
- name: Build with Maven
4238
if: matrix.arch == 'x64' && matrix.os == 'ubuntu-latest' && matrix.java == '11'
4339
env:
4440
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4541
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
46-
run: mvn verify -B -"Dgpg.skip" org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
42+
run: |
43+
if [[ "{{ matrix.arch }}" == "x64" && "{{ matrix.os }}" == "ubuntu-latest" && "{{ matrix.java }}" == "11" ]]; then
44+
mvn verify -B -"Dgpg.skip" org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
45+
else
46+
mvn verify -B -"Dgpg.skip"
47+
fi;
4748
4849
release:
4950
if: github.ref == 'refs/heads/master'

0 commit comments

Comments
 (0)