From 043b92bdd5cc6678bca9b97c828eb9d1ca78e86c Mon Sep 17 00:00:00 2001 From: Rob Herley Date: Wed, 6 Dec 2023 18:25:46 -0500 Subject: [PATCH] does this work? --- dist/index.js | 5 ++--- src/upload-artifact.ts | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 9013fb4..2cb5319 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5648,11 +5648,11 @@ class ArtifactHttpClient { try { // const response = await this.retryableRequest(async () => const response = yield this.httpClient.post(url, JSON.stringify(data), headers); - const body = yield response.readBody(); - (0, core_1.debug)(`[Response] ${body}`); if (response.message.statusCode !== 200) { throw new Error(`Non-200: ${response.message.statusCode}`); } + const body = yield response.readBody(); + (0, core_1.debug)(`[Response] ${body}`); return JSON.parse(body); } catch (error) { @@ -145245,7 +145245,6 @@ function run() { } catch (error) { core.setFailed(error.message); - console.log('sanity check'); } }); } diff --git a/src/upload-artifact.ts b/src/upload-artifact.ts index 8a75345..3706d2f 100644 --- a/src/upload-artifact.ts +++ b/src/upload-artifact.ts @@ -62,7 +62,6 @@ async function run(): Promise { } } catch (error) { core.setFailed((error as Error).message) - console.log('sanity check') } }