mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-08-25 08:08:00 +00:00
End action if an error is encountered
This commit is contained in:
parent
732ff79473
commit
528d756289
@ -26,6 +26,7 @@ async function run() {
|
||||
if (res.status >= 400) {
|
||||
// throw an error
|
||||
error(res.status);
|
||||
return;
|
||||
}
|
||||
|
||||
// output the status
|
||||
@ -37,6 +38,7 @@ async function run() {
|
||||
})
|
||||
.catch((err) => {
|
||||
error(err.status);
|
||||
return;
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user