From 26047ea866a899097eded0240b3d1deaa234be61 Mon Sep 17 00:00:00 2001 From: Sergejs Luhmirins Date: Thu, 15 Jan 2026 15:54:17 +0200 Subject: [PATCH] Make sure that sonar job runs when any other job was skipped --- .github/workflows/pr-checks.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 0ffe6c8735..d3f6404585 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -252,8 +252,10 @@ jobs: fingerprint-unit-tests, testing-tools ] uses: ./.github/workflows/reusable-sonar-scan.yml - # Only run if the PR ready for review or triggered manually, and if tests passed or matched 'skipped' status (due to smart filter) + # Only run if the PR ready for review or triggered manually, and if tests passed or matched 'skipped' status (due to smart filter) + # always() calls is required to prevent a hidden success() check being added if: > + always() && (github.event.pull_request.draft == false || github.event_name == 'workflow_dispatch') && !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled')