From 23a0ae71889ec1d1d90b4fc0a41d4ee1faaec3ca Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Mon, 9 Oct 2023 05:59:23 +0200 Subject: [PATCH] :wrench: Add debug print --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index c23a619..9835208 100644 --- a/index.js +++ b/index.js @@ -12,6 +12,10 @@ const gistUrl = new URL(core.getInput("gistID"), core.getInput("host")); // This uses the method above to update a gist with the given data. The user agent is // required as defined in https://developer.github.com/v3/#user-agent-required async function updateGist(body) { + console.log("Updating gist..."); + console.log(body); + console.log(body.length); + const headers = new Headers([ ["Content-Type", "application/json"], ["Content-Length", body.length.toStrinq()],