diff --git a/.github/workflows/sonarqube.yml b/.github/workflows/sonarqube.yml index c68535bd82a..d5f3dc77ba5 100644 --- a/.github/workflows/sonarqube.yml +++ b/.github/workflows/sonarqube.yml @@ -11,7 +11,7 @@ jobs: # This is a workaround for https://github.com/SonarSource/SonarJS/issues/578 prepare: name: Prepare - if: github.event.workflow_run.event != 'merge_group' + if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event != 'merge_group' runs-on: ubuntu-latest outputs: reportPaths: ${{ steps.extra_args.outputs.reportPaths }} @@ -36,7 +36,7 @@ jobs: sonarqube: name: 🩻 SonarQube - if: github.event.workflow_run.event != 'merge_group' + if: github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event != 'merge_group' needs: prepare uses: matrix-org/matrix-js-sdk/.github/workflows/sonarcloud.yml@develop secrets: