mirror of
https://github.com/apache/struts.git
synced 2026-08-05 22:56:59 +00:00
Runs Sonar step in case of running on master or PR
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user