diff --git a/.github/workflows/cleanup-backport-branches.yml b/.github/workflows/cleanup-backport-branches.yml index 82cf7d3cfd..783c86a982 100644 --- a/.github/workflows/cleanup-backport-branches.yml +++ b/.github/workflows/cleanup-backport-branches.yml @@ -31,8 +31,7 @@ jobs: } catch (error) { if (error.status === 422) { console.log(`Branch '${branch}' not found`); + } else { + throw error; } - } else { - throw error; } - }