Skip to content

Commit 26248f8

Browse files
committed
Additional check to ensure artifacts are downloaded
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
1 parent ae2ae48 commit 26248f8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/sonarcloud.yml

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

4545
- name: 📥 Download artifact
4646
uses: actions/download-artifact@v4
47+
id: download
4748
if: ${{ !inputs.sharded }}
4849
with:
4950
github-token: ${{ secrets.GITHUB_TOKEN }}
@@ -52,13 +53,19 @@ jobs:
5253
path: coverage
5354
- name: 📥 Download sharded artifacts
5455
uses: actions/download-artifact@v4
56+
id: download
5557
if: inputs.sharded
5658
with:
5759
github-token: ${{ secrets.GITHUB_TOKEN }}
5860
run-id: ${{ github.event.workflow_run.id }}
5961
pattern: coverage-*
6062
path: coverage
6163
merge-multiple: true
64+
- name: Fail if failed to download files
65+
if: steps.download.outputs.download-path == ''
66+
run: |
67+
echo "Failed to download coverage artifact"
68+
exit 1
6269
6370
- id: extra_args
6471
run: |

0 commit comments

Comments
 (0)