Update run-tests.yml

Hopefully fix the `if` condition for sonar analysis
This commit is contained in:
dave-shawley 2021-04-07 07:55:43 -04:00 committed by GitHub
parent a28f984c84
commit d7b4fc568b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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