Skip to content

Commit 2f8eee7

Browse files
Switches sonar command to multiline format (#229)
1 parent 6f5a5cb commit 2f8eee7

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@ jobs:
2626
with:
2727
maven-version: 3.9.9
2828

29-
- name: Run Sonar scanner
30-
run: mvn --batch-mode package sonar:sonar -Dsonar.projectKey=damianszczepanik_build-history-manager-plugin -Dsonar.organization=damianszczepanik -Dsonar.host.url=https://sonarcloud.io -Dsonar.token=$SONAR_TOKEN
29+
- name: Build and analyse
30+
run: >
31+
mvn --batch-mode package org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
32+
-Dsonar.projectKey=damianszczepanik_build-history-manager-plugin
33+
-Dsonar.organization=damianszczepanik
34+
-Dsonar.host.url=https://sonarcloud.io
35+
-Dsonar.token=$SONAR_TOKEN
3136
env:
3237
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3338
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)