Only run sonar on nightly runs

This commit is contained in:
Michael Kaye 2022-03-23 15:15:30 +00:00
parent 6d0b823b66
commit 669d00c02a

View File

@ -293,7 +293,7 @@ jobs:
sonarqube:
name: Sonarqube upload
runs-on: macos-latest
if: always()
if: always() && github.event_name == "schedule"
needs:
- codecov-units
steps:
@ -319,7 +319,7 @@ jobs:
env:
ORG_GRADLE_PROJECT_SONAR_LOGIN: ${{ secrets.SONAR_TOKEN }}
# Notify the channel about scheduled runs, do not notify for manually triggered runs
# Notify the channel about scheduled runs, or pushes to the release branches, do not notify for manually triggered runs
notify:
name: Notify matrix
runs-on: ubuntu-latest