From e43a50e065874b797a04e6ba11a4d5a38403f9a7 Mon Sep 17 00:00:00 2001 From: Jan Holthuis Date: Thu, 12 Oct 2023 23:15:12 +0200 Subject: [PATCH] ci(packaging): Fail notarization if server returns "invalid" status Otherwise it loops forever until the CI jobs runs into a timeout. --- packaging/macos/sign_notarize_staple.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packaging/macos/sign_notarize_staple.sh b/packaging/macos/sign_notarize_staple.sh index 5628abc1173..2cb698230cd 100755 --- a/packaging/macos/sign_notarize_staple.sh +++ b/packaging/macos/sign_notarize_staple.sh @@ -44,6 +44,9 @@ while true; do elif [ "${NOTARIZATION_STATUS}" == "success" ]; then echo "Notarization succeeded" break + elif [ "${NOTARIZATION_STATUS}" == "invalid" ]; then + echo "Notarization failed with status: ${NOTARIZATION_STATUS}" + exit 1 else echo "Notarization status: ${NOTARIZATION_STATUS}" fi