File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change 44
44
45
45
- name : 📥 Download artifact
46
46
uses : actions/download-artifact@v4
47
- id : download
48
47
if : ${{ !inputs.sharded }}
49
48
with :
50
49
github-token : ${{ secrets.GITHUB_TOKEN }}
@@ -53,19 +52,19 @@ jobs:
53
52
path : coverage
54
53
- name : 📥 Download sharded artifacts
55
54
uses : actions/download-artifact@v4
56
- id : download
57
55
if : inputs.sharded
58
56
with :
59
57
github-token : ${{ secrets.GITHUB_TOKEN }}
60
58
run-id : ${{ github.event.workflow_run.id }}
61
59
pattern : coverage-*
62
60
path : coverage
63
61
merge-multiple : true
64
- - name : Fail if failed to download files
65
- if : steps.download.outputs.download-path == ''
62
+ - name : Check coverage artifact
66
63
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
69
68
70
69
- id : extra_args
71
70
run : |
You can’t perform that action at this time.
0 commit comments