diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 39ea1cfa1b..d3fb2206ea 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -79,10 +79,9 @@ jobs: key: ${{ runner.os }}-sonar-scanner restore-keys: ${{ runner.os }}-sonar-scanner - name: Install SonarCloud scanner - if: steps.cache-sonar-scanner.outputs.cache-hit != 'true' shell: pwsh run: | - New-Item -Path ./.sonar/scanner -ItemType Directory + New-Item -Path ./.sonar/scanner -ItemType Directory -Force dotnet tool update dotnet-sonarscanner --tool-path ./.sonar/scanner - name: Build and analyze env: