mirror of
https://github.com/trympet/nextcloud-artifacts-action.git
synced 2025-04-24 20:16:08 +02:00
test
This commit is contained in:
parent
a96cb53d3a
commit
1f2878a134
1433
dist/index.js
vendored
1433
dist/index.js
vendored
File diff suppressed because it is too large
Load Diff
@ -163,10 +163,11 @@ export class NextcloudClient {
|
|||||||
|
|
||||||
const remoteFilePath = `${remoteFileDir}/${this.artifact}.zip`;
|
const remoteFilePath = `${remoteFileDir}/${this.artifact}.zip`;
|
||||||
core.info(`Transferring file... (${file})`);
|
core.info(`Transferring file... (${file})`);
|
||||||
const stream = fsSync.createReadStream(file)
|
const stream = this.davClient.createWriteStream(remoteFilePath)
|
||||||
.pipe(this.davClient.createWriteStream(remoteFilePath));
|
fsSync.createReadStream(file)
|
||||||
|
.pipe(stream);
|
||||||
|
|
||||||
return new Promise<string>((resolve, reject) => {
|
return await new Promise<string>((resolve, reject) => {
|
||||||
stream.on('error', () => reject("Failed to upload file"))
|
stream.on('error', () => reject("Failed to upload file"))
|
||||||
.on('pipe', () => core.info("pipe"))
|
.on('pipe', () => core.info("pipe"))
|
||||||
.on('finish', () => resolve(remoteFilePath));
|
.on('finish', () => resolve(remoteFilePath));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user