This is an automated email from the ASF dual-hosted git repository. lukaszlenart pushed a commit to branch fix/sonar-scan in repository https://gitbox.apache.org/repos/asf/struts.git
commit c0a720475b19dc790a78864f2f19a11f5835bbf7 Author: Lukasz Lenart <lukaszlen...@apache.org> AuthorDate: Fri Jan 3 16:29:55 2025 +0100 Removes checking branch ref and removes branch name as not needed --- .github/workflows/sonar.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index 01d9bf2aa..2d5397e17 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -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