From 969b39c3261d06730c8ca679f82851ee93b9137d Mon Sep 17 00:00:00 2001 From: Kyle Johns Date: Sun, 27 Sep 2020 16:05:35 -0400 Subject: [PATCH] debugging --- src/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 03a3345..78dc826 100644 --- a/src/index.js +++ b/src/index.js @@ -15,6 +15,8 @@ function execute() { accessKeyId: AWS_ACCESS_KEY_ID, secretAccessKey: AWS_SECRET_ACCESS_KEY }); + + core.debug(MESSAGE); const params = { Message: MESSAGE, @@ -24,13 +26,17 @@ function execute() { const awsClient = new AWS.SNS({ apiVersion: "2010-03-31" }); awsClient.publish(params, function(err, data) { - if (err) core.setFailed(err.Message); + if (err) { + core.debug(err.Message); + core.setFailed(err.Message); + } else { core.debug("Published Topic Sent!"); return data.MessageId; } }); }catch(error) { + core.debug(err.Message); core.setFailed(error.message); } }