does this work?
This commit is contained in:
parent
797c550946
commit
043b92bdd5
|
@ -5648,11 +5648,11 @@ class ArtifactHttpClient {
|
||||||
try {
|
try {
|
||||||
// const response = await this.retryableRequest(async () =>
|
// const response = await this.retryableRequest(async () =>
|
||||||
const response = yield this.httpClient.post(url, JSON.stringify(data), headers);
|
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) {
|
if (response.message.statusCode !== 200) {
|
||||||
throw new Error(`Non-200: ${response.message.statusCode}`);
|
throw new Error(`Non-200: ${response.message.statusCode}`);
|
||||||
}
|
}
|
||||||
|
const body = yield response.readBody();
|
||||||
|
(0, core_1.debug)(`[Response] ${body}`);
|
||||||
return JSON.parse(body);
|
return JSON.parse(body);
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
|
@ -145245,7 +145245,6 @@ function run() {
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
console.log('sanity check');
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -62,7 +62,6 @@ async function run(): Promise<void> {
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed((error as Error).message)
|
core.setFailed((error as Error).message)
|
||||||
console.log('sanity check')
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue