Commit c163e9a47c446dc3b38b31ca7cbd30b4f8091eec
1 parent
7e232434
chore(actions): only run sonarcloud after merging of the PR
Secrets aren't available for builds triggered from forks. As such, this is a bit pointless, as it will only work with people who have write access to the repository.
Showing
1 changed file
with
3 additions
and
6 deletions
.github/workflows/sonarcloud.yaml
| 1 | -name: Build | 1 | +name: Code quality |
| 2 | 2 | ||
| 3 | on: | 3 | on: |
| 4 | push: | 4 | push: |
| 5 | branches: | 5 | branches: |
| 6 | - main | 6 | - main |
| 7 | - pull_request: | ||
| 8 | - branches: | ||
| 9 | - - main | ||
| 10 | 7 | ||
| 11 | jobs: | 8 | jobs: |
| 12 | - build: | ||
| 13 | - name: Build | 9 | + code_quality: |
| 10 | + name: Code quality | ||
| 14 | runs-on: ubuntu-latest | 11 | runs-on: ubuntu-latest |
| 15 | 12 | ||
| 16 | env: | 13 | env: |