Skip to content

Commit 0324aa8

Browse files
committed
workflow_dispatch
1 parent bacea40 commit 0324aa8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ jobs:
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 }}

0 commit comments

Comments
 (0)