From acd220b8a93264a1cc4e0c796cc68ca8ca1945f7 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 13 Dec 2022 09:59:52 +0000 Subject: [PATCH] Tweak how the SonarCloud scan fails (#2947) --- .github/workflows/sonarcloud.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index e70c9b99e..5c678c394 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -28,6 +28,8 @@ jobs: - name: "🩻 SonarCloud Scan" id: sonarcloud uses: matrix-org/sonarcloud-workflow-action@v2.3 + # workflow_run fails report against the develop commit always, we don't want that for PRs + continue-on-error: ${{ github.event.workflow_run.head_branch != 'develop' }} with: repository: ${{ github.event.workflow_run.head_repository.full_name }} is_pr: ${{ github.event.workflow_run.event == 'pull_request' }}