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') } }