Commit c163e9a47c446dc3b38b31ca7cbd30b4f8091eec

Authored by Patric Stout
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.
.github/workflows/sonarcloud.yaml
1   -name: Build
  1 +name: Code quality
2 2  
3 3 on:
4 4 push:
5 5 branches:
6 6 - main
7   - pull_request:
8   - branches:
9   - - main
10 7  
11 8 jobs:
12   - build:
13   - name: Build
  9 + code_quality:
  10 + name: Code quality
14 11 runs-on: ubuntu-latest
15 12  
16 13 env:
... ...