From 2c37cdc337f6c776d8dd115dc3fd5e96412479de Mon Sep 17 00:00:00 2001 From: Tim Roes Date: Fri, 11 Feb 2022 17:21:04 +0100 Subject: [PATCH] Fix failing sonar-scan without changes --- .github/workflows/sonar-scan.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sonar-scan.yml b/.github/workflows/sonar-scan.yml index 7c1f40ec216cf..7e4b414bae2ea 100644 --- a/.github/workflows/sonar-scan.yml +++ b/.github/workflows/sonar-scan.yml @@ -36,7 +36,8 @@ jobs: echo "::set-output name=changed-modules::{ \"include\": $CHANGES }" run-ci-tests: - if: github.event.pull_request.draft == false + # Do only run if the PR is not a draft and the changed modules matrix contains at least one entry + if: github.event.pull_request.draft == false && fromJson(needs.detect-changes.outputs.changed-modules).include[0] != null needs: detect-changes name: Tests for ${{ matrix.module }} runs-on: ubuntu-latest