Update sonar upload to only run on main.

This commit is contained in:
Dave Shawley 2021-04-07 07:44:04 -04:00
parent 27c357f14a
commit e35f903744
No known key found for this signature in database
GPG key ID: F41A8A99298F8EED

View file

@ -52,7 +52,8 @@ jobs:
sonarcloud: sonarcloud:
name: SonarCloud name: SonarCloud
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ secrets.SONAR_TOKEN }} if: ${{ github.event == 'push' && github.ref == 'refs/heads/main' }}
needs: test
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with: