does this work?

This commit is contained in:
Rob Herley 2023-12-06 18:25:46 -05:00
parent 797c550946
commit 043b92bdd5
No known key found for this signature in database
GPG Key ID: D1602042C3543B06
2 changed files with 2 additions and 4 deletions

5
dist/index.js vendored
View File

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

View File

@ -62,7 +62,6 @@ async function run(): Promise<void> {
}
} catch (error) {
core.setFailed((error as Error).message)
console.log('sanity check')
}
}