File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -54,15 +54,22 @@ async fn fetch_artifact(
54
54
org : & str ,
55
55
repo : & str ,
56
56
artifact : WorkflowListArtifact ,
57
- ) -> Result < bytes:: Bytes > {
57
+ ) -> Option < bytes:: Bytes > {
58
58
println ! ( "downloading artifact {}" , artifact. name) ;
59
59
60
- let res = client
60
+ let res = match client
61
61
. actions ( )
62
62
. download_artifact ( org, repo, artifact. id , ArchiveFormat :: Zip )
63
- . await ?;
63
+ . await
64
+ {
65
+ Ok ( res) => res,
66
+ Err ( err) => {
67
+ println ! ( "failed to download artifact {}: {}" , artifact. name, err) ;
68
+ return None ;
69
+ }
70
+ } ;
64
71
65
- Ok ( res)
72
+ Some ( res)
66
73
}
67
74
68
75
enum UploadSource {
@@ -272,7 +279,7 @@ pub async fn command_fetch_release_distributions(args: &ArgMatches) -> Result<()
272
279
let mut install_paths = vec ! [ ] ;
273
280
274
281
while let Some ( res) = buffered. next ( ) . await {
275
- let data = res? ;
282
+ let Some ( data) = res else { continue } ;
276
283
277
284
let mut za = ZipArchive :: new ( std:: io:: Cursor :: new ( data) ) ?;
278
285
for i in 0 ..za. len ( ) {
You can’t perform that action at this time.
0 commit comments