Skip to content

Commit 4b9a1bd

Browse files
committed
Fix coverage check
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent 26248f8 commit 4b9a1bd

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/sonarcloud.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ jobs:
4444

4545
- name: 📥 Download artifact
4646
uses: actions/download-artifact@v4
47-
id: download
4847
if: ${{ !inputs.sharded }}
4948
with:
5049
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -53,19 +52,19 @@ jobs:
5352
path: coverage
5453
- name: 📥 Download sharded artifacts
5554
uses: actions/download-artifact@v4
56-
id: download
5755
if: inputs.sharded
5856
with:
5957
github-token: ${{ secrets.GITHUB_TOKEN }}
6058
run-id: ${{ github.event.workflow_run.id }}
6159
pattern: coverage-*
6260
path: coverage
6361
merge-multiple: true
64-
- name: Fail if failed to download files
65-
if: steps.download.outputs.download-path == ''
62+
- name: Check coverage artifact
6663
run: |
67-
echo "Failed to download coverage artifact"
68-
exit 1
64+
if [ ! -d coverage ]; then
65+
echo "Coverage not found. Exiting with failure."
66+
exit 1
67+
fi
6968
7069
- id: extra_args
7170
run: |

0 commit comments

Comments
 (0)