From 4b9a1bd53f4eac2abc731b773ca5ef81deb2f4e5 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 21 Nov 2024 16:05:38 +0000 Subject: [PATCH] Fix coverage check Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- .github/workflows/sonarcloud.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index cf2a3ad90..c63af1785 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -44,7 +44,6 @@ jobs: - name: 📥 Download artifact uses: actions/download-artifact@v4 - id: download if: ${{ !inputs.sharded }} with: github-token: ${{ secrets.GITHUB_TOKEN }} @@ -53,7 +52,6 @@ jobs: path: coverage - name: 📥 Download sharded artifacts uses: actions/download-artifact@v4 - id: download if: inputs.sharded with: github-token: ${{ secrets.GITHUB_TOKEN }} @@ -61,11 +59,12 @@ jobs: pattern: coverage-* path: coverage merge-multiple: true - - name: Fail if failed to download files - if: steps.download.outputs.download-path == '' + - name: Check coverage artifact run: | - echo "Failed to download coverage artifact" - exit 1 + if [ ! -d coverage ]; then + echo "Coverage not found. Exiting with failure." + exit 1 + fi - id: extra_args run: |