mirror of
https://github.com/trympet/nextcloud-artifacts-action.git
synced 2025-04-24 20:16:08 +02:00
log response
This commit is contained in:
parent
03e2a736d6
commit
77a901b885
@ -153,10 +153,11 @@ export class NextcloudClient {
|
|||||||
|
|
||||||
const remoteFilePath = path.join(remoteFileDir, `${this.artifact}.zip`);
|
const remoteFilePath = path.join(remoteFileDir, `${this.artifact}.zip`);
|
||||||
const stream = fsSync.createReadStream(file);
|
const stream = fsSync.createReadStream(file);
|
||||||
await this.davClient.putFileContents(remoteFilePath, stream, {
|
const res = await this.davClient.putFileContents(remoteFilePath, stream, {
|
||||||
onUploadProgress: p => core.debug(`Progress: ${p.loaded}/${p.total}`),
|
onUploadProgress: p => core.debug(`Progress: ${p.loaded}/${p.total}`),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
core.debug(`Upload status: ${res}`);
|
||||||
return remoteFilePath;
|
return remoteFilePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user