From 77a901b88524371c2fc556713f648bb0b60a6757 Mon Sep 17 00:00:00 2001 From: Trym Lund Flogard Date: Wed, 2 Jun 2021 18:28:35 +0200 Subject: [PATCH] log response --- src/nextcloud/NextcloudClient.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nextcloud/NextcloudClient.ts b/src/nextcloud/NextcloudClient.ts index d5365cb..a335e72 100644 --- a/src/nextcloud/NextcloudClient.ts +++ b/src/nextcloud/NextcloudClient.ts @@ -153,10 +153,11 @@ export class NextcloudClient { const remoteFilePath = path.join(remoteFileDir, `${this.artifact}.zip`); 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}`), }); + core.debug(`Upload status: ${res}`); return remoteFilePath; }