From 30136d63f2925f28674eace33ab3fd098482e741 Mon Sep 17 00:00:00 2001 From: "@zimeg" Date: Mon, 28 Oct 2024 11:42:38 -0700 Subject: [PATCH] feat: set the 'ok' and 'response' output for webhook requests --- src/webhook.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/webhook.js b/src/webhook.js index 69ac74a..6bbb39d 100644 --- a/src/webhook.js +++ b/src/webhook.js @@ -27,7 +27,9 @@ export default class Webhook { config.content.values, options, ); - config.core.debug(JSON.stringify(response?.data)); + config.core.setOutput("ok", response.status === 200); + config.core.setOutput("response", JSON.stringify(response)); + config.core.debug(JSON.stringify(response)); } /**