File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7575 fi
7676
7777 - name : Begin analysis on SonarCloud
78- if : ${{ steps.secret-check.outputs.run_analysis == 'true' && inputs.SonarScanner }}
78+ if : ${{ steps.secret-check.outputs.run_analysis == 'true' && (github.event_name != 'workflow_dispatch' || inputs.SonarScanner) }}
7979 run : |
8080 dotnet sonarscanner begin /k:"zzzprojects_System.Linq.Dynamic.Core" /o:"zzzprojects" /d:sonar.branch.name=$BranchName /d:sonar.host.url="https://sonarcloud.io" /d:sonar.token=${{ secrets.SONAR_TOKEN }} /d:sonar.pullrequest.provider=github /d:sonar.dotnet.excludeTestProjects=true /d:sonar.cs.vscoveragexml.reportsPaths=**/dynamic-coverage-*.xml /d:sonar.verbose=true
8181
@@ -100,6 +100,6 @@ jobs:
100100 dotnet-coverage collect 'dotnet test ./test/System.Linq.Dynamic.Core.SystemTextJson.Tests/System.Linq.Dynamic.Core.SystemTextJson.Tests.csproj --configuration Debug --framework net10.0 -p:buildType=azure-pipelines-ci' -f xml -o dynamic-coverage-systemtextjson.xml
101101
102102 - name : End analysis on SonarCloud
103- if : ${{ steps.secret-check.outputs.run_analysis == 'true' && inputs.SonarScanner }}
103+ if : ${{ steps.secret-check.outputs.run_analysis == 'true' && (github.event_name != 'workflow_dispatch' || inputs.SonarScanner) }}
104104 run : |
105105 dotnet sonarscanner end /d:sonar.token=${{ secrets.SONAR_TOKEN }}
You can’t perform that action at this time.
0 commit comments