diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml index fee88bc..edbb7f9 100644 --- a/.github/workflows/sonar.yml +++ b/.github/workflows/sonar.yml @@ -34,5 +34,5 @@ jobs: -Dsonar.test.exclusions=tests/** -Dsonar.javascript.lcov.reportPaths=coverage/lcov.info -Dsonar.tests=tests/ - ${{ github.event_name == 'pull_request' ? '' : '-Dsonar.branch.name=' + github.ref_name }} + ${{ github.event_name != 'pull_request' && '-Dsonar.branch.name=' + github.ref }} -Dsonar.verbose=true