mirror of
https://github.com/apache/struts.git
synced 2026-08-05 14:47:09 +00:00
Removes checking branch ref and removes branch name as not needed
This commit is contained in:
@@ -44,6 +44,4 @@ jobs:
|
||||
- env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}
|
||||
MAIN_BRANCH: ${{ github.ref || github.base_ref || github.ref || github.base_ref }}
|
||||
if: ${{ github.ref == 'main' || github.base_ref == 'main' }}
|
||||
run: ./mvnw -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.branch.name=${{ env.MAIN_BRANCH }} -Pcoverage -DskipAssembly
|
||||
run: ./mvnw -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Pcoverage -DskipAssembly
|
||||
|
||||
Reference in New Issue
Block a user