diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 20c84c1..535e8bc 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -52,7 +52,8 @@ jobs: sonarcloud: name: SonarCloud runs-on: ubuntu-latest - if: ${{ secrets.SONAR_TOKEN }} + if: ${{ github.event == 'push' && github.ref == 'refs/heads/main' }} + needs: test steps: - uses: actions/checkout@v2 with: