This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch fix/sonar
in repository https://gitbox.apache.org/repos/asf/struts.git


The following commit(s) were added to refs/heads/fix/sonar by this push:
     new 55885bc86 Runs Sonar step in case of running on master or PR
55885bc86 is described below

commit 55885bc86977d05e7ed94046ac26861881c77a8d
Author: Lukasz Lenart <lukaszlen...@apache.org>
AuthorDate: Mon Nov 18 12:34:53 2024 +0100

    Runs Sonar step in case of running on master or PR
---
 .github/workflows/sonar.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml
index acbde6ab2..fc64deac3 100644
--- a/.github/workflows/sonar.yml
+++ b/.github/workflows/sonar.yml
@@ -44,4 +44,5 @@ jobs:
       - env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
-        run: ./mvnw verify 
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar 
-Dsonar.branch.name=master -Pcoverage -DskipAssembly --no-transfer-progress
+        if: ${{ github.ref == 'master' || github.base_ref == 'master' }}
+        run: ./mvnw -B verify 
org.sonarsource.scanner.maven:sonar-maven-plugin:sonar 
-Dsonar.branch.name=master -Pcoverage -DskipAssembly

Reply via email to