From c0c793f4722ccac12540d4edf04ceebcb488c8a5 Mon Sep 17 00:00:00 2001 From: Deep Singhvi Date: Thu, 1 Aug 2024 02:57:07 -0400 Subject: [PATCH] (fix): vecel deploys robustly handle revalidation failures (#1230) --- .github/workflows/production.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/production.yml b/.github/workflows/production.yml index c1fecdfee1..1f2943b24a 100644 --- a/.github/workflows/production.yml +++ b/.github/workflows/production.yml @@ -63,8 +63,11 @@ jobs: for DOMAIN in ${ALIAS_DOMAINS[@]}; do if [[ "$DOMAIN" != *"buildwithfern.com"* ]] && [[ "$DOMAIN" != *"vercel.app"* ]]; then - curl -s -X POST "https://$DOMAIN/api/revalidate-all" -H "x-fern-host: $DOMAIN" - echo "Revalidated: $DOMAIN" + if curl -s -X POST "https://$DOMAIN/api/revalidate-all" -H "x-fern-host: $DOMAIN"; then + echo "Revalidated: $DOMAIN" + else + echo "Failed to revalidate $DOMAIN, but continuing with other domains" + fi fi done