File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ pub(super) async fn handle(
82
82
}
83
83
} else {
84
84
log:: info!( "creating release {} on {}" , tag, event. repo_name( ) ) ;
85
- let _ : serde_json:: Value = ctx
85
+ let e : octocrab :: Result < serde_json:: Value > = ctx
86
86
. octocrab
87
87
. post (
88
88
format ! ( "repos/{}/releases" , event. repo_name( ) ) ,
@@ -92,7 +92,16 @@ pub(super) async fn handle(
92
92
"body" : expected_body,
93
93
} ) ) ,
94
94
)
95
- . await ?;
95
+ . await ;
96
+ match e {
97
+ Ok ( v) => log:: debug!( "created release: {:?}" , v) ,
98
+ Err ( e) => {
99
+ log:: error!( "Failed to create release: {:?}" , e) ;
100
+
101
+ // Don't stop creating future releases just because this
102
+ // one failed.
103
+ }
104
+ }
96
105
}
97
106
98
107
log:: debug!( "sleeping for one second to avoid hitting any rate limit" ) ;
You can’t perform that action at this time.
0 commit comments