diff --git a/.gitea/workflows/sonarqube.yml b/.gitea/workflows/sonarqube.yml index c904955..c44caed 100644 --- a/.gitea/workflows/sonarqube.yml +++ b/.gitea/workflows/sonarqube.yml @@ -3,7 +3,7 @@ name: Bigfoot pull_request: branches: - main - types: [opened, synchronize, reopened] + - Development jobs: build-and-test: @@ -35,7 +35,7 @@ jobs: run: infer run --compilation-database build/Debug/compile_commands.json - name: SonarQube Scan - if: github.event_name == 'push' + if: github.event.pull_request.base.ref == 'main' uses: SonarSource/sonarqube-scan-action@v7.0.0 with: args: > @@ -43,4 +43,4 @@ jobs: -Dsonar.verbose=true env: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - SONAR_HOST_URL: ${{ secrets.SONAR_HOST }} + SONAR_HOST_URL: ${{ secrets.SONAR_HOST }} \ No newline at end of file