From 353bb270636ded3b558c36374aeac540cb925419 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Tue, 21 May 2024 13:49:57 -0700 Subject: [PATCH] Don't throw in deploy-preview on not found PR --- .github/workflows/deploy-preview.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 22b12ca01289..44cad221e11d 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -73,7 +73,8 @@ jobs: } if (!pr) { - throw new Error("Could not find PR"); + console.log("Could not find PR"); + return null; } console.log(`Found PR ${pr.html_url}`);