1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/upload-artifact.git synced 2024-11-08 18:32:40 +00:00

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

View file

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