mirror of
https://github.com/sprockets/sprockets-statsd.git
synced 2024-11-21 19:28:35 +00:00
Update sonar upload to only run on main.
This commit is contained in:
parent
27c357f14a
commit
e35f903744
1 changed files with 2 additions and 1 deletions
3
.github/workflows/run-tests.yml
vendored
3
.github/workflows/run-tests.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue