From e38c31ac1562732e0badd98920636f68959225c3 Mon Sep 17 00:00:00 2001 From: Andrea Brancaleoni Date: Thu, 21 Mar 2024 00:56:04 +0900 Subject: [PATCH] action.yml: manage the case `message` is not defined --- action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/action.yml b/action.yml index cdcf086..00acf83 100644 --- a/action.yml +++ b/action.yml @@ -237,7 +237,7 @@ runs: } try { - if (options.key && patchExplained === null && patch.type !== "simple" && logError.message !== "debounce" && !logError.message.includes("maximum context length")) { + if (options.key && patchExplained === null && patch.type !== "simple" && logError.message !== "debounce" && !logError.message?.includes("maximum context length")) { patchExplained = patch.watermark+"\n\n"+`logError ${logError.message}`; }