fix path format

This commit is contained in:
Trym Lund Flogard 2021-06-02 19:21:08 +02:00
parent 2431c40b14
commit 5b01b7a17b
2 changed files with 717 additions and 717 deletions

1430
dist/index.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -157,7 +157,7 @@ export class NextcloudClient {
await this.davClient.createDirectory(remoteFileDir, { recursive: true });
}
const remoteFilePath = path.join(remoteFileDir, `${this.artifact}.zip`);
const remoteFilePath = `${remoteFileDir}/${this.artifact}.zip`;
core.info("Transferring file...");
const stream = fsSync.createReadStream(file)
.pipe(this.davClient.createWriteStream(remoteFilePath));
@ -183,6 +183,6 @@ export class NextcloudClient {
body: JSON.stringify(body),
});
core.debug(await res.text())
core.info(await res.text())
}
}