mirror of
https://code.forgejo.org/forgejo/upload-artifact.git
synced 2024-12-22 14:32:45 +00:00
does this work?
This commit is contained in:
parent
797c550946
commit
043b92bdd5
2 changed files with 2 additions and 4 deletions
5
dist/index.js
vendored
5
dist/index.js
vendored
|
@ -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');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -62,7 +62,6 @@ async function run(): Promise<void> {
|
|||
}
|
||||
} catch (error) {
|
||||
core.setFailed((error as Error).message)
|
||||
console.log('sanity check')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue