Skip to content

Commit

Permalink
Update dotnet.yml (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
sungaila authored Dec 3, 2024
1 parent 0e589c8 commit af17165
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ jobs:
sonarcloud:
name: SonarCloud
runs-on: windows-latest
if: (github.repository == 'sungaila/PDFtoImage' && success()) && (github.event_name != 'workflow_dispatch' && true || inputs.run_sonarcloud) == true
if: (github.repository == 'sungaila/PDFtoImage' && github.ref == 'refs/heads/master') || (github.event_name == 'workflow_dispatch' && inputs.run_sonarcloud) == true
steps:
- name: Checkout
uses: actions/checkout@main
Expand Down Expand Up @@ -306,4 +306,4 @@ jobs:
.\.sonar\scanner\dotnet-sonarscanner begin /k:"sungaila_PDFtoImage" /o:"sungaila" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
dotnet build src/PDFtoImage.SonarCloud.slnf -c ${{ github.event_name != 'workflow_dispatch' && 'Debug' || inputs.build_configuration }}
dotnet-coverage collect "dotnet test src/PDFtoImage.SonarCloud.slnf --verbosity detailed" -f xml -o "coverage.xml"
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"

0 comments on commit af17165

Please sign in to comment.