From 949b9a22f0eebd5c86522b9cda365da68e0401cb Mon Sep 17 00:00:00 2001 From: Joel Male Date: Tue, 8 Nov 2022 11:42:54 +1000 Subject: [PATCH] wip: fix numerous issues due to action changes --- src/main.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.ts b/src/main.ts index 815e41dc..8ee7f6f9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,16 +7,19 @@ async function run() { : process.env.WEBHOOK_URL ? process.env.WEBHOOK_URL : '' + const headers = core.getInput('headers') ? core.getInput('headers') : process.env.headers ? process.env.headers : null + const body = core.getInput('body') ? core.getInput('body') : process.env.data ? process.env.data : null + const insecure = core.getInput('insecure') ? core.getInput('insecure') == 'true' : process.env.insecure @@ -47,12 +50,12 @@ async function run() { return } - // output the status - core.setOutput('statusCode', res.status) // report on the status code core.info(`Received status code: ${res.status}`) + // debug end core.info(new Date().toTimeString()) + }) .catch(err => { error(err.status)