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
a54a89d701
commit
3cf7a462d4
1432
dist/index.js
vendored
1432
dist/index.js
vendored
File diff suppressed because it is too large
Load Diff
@ -149,7 +149,7 @@ export class NextcloudClient {
|
||||
|
||||
return await new Promise<void>((resolve, reject) => {
|
||||
stream.on('error', e => reject(e))
|
||||
.on('finish', () => resolve());
|
||||
.on('close', () => resolve());
|
||||
})
|
||||
}
|
||||
|
||||
@ -162,13 +162,13 @@ export class NextcloudClient {
|
||||
}
|
||||
|
||||
const remoteFilePath = `${remoteFileDir}/${this.artifact}.zip`;
|
||||
core.info("Transferring file...");
|
||||
core.info(`Transferring file... (${file})`);
|
||||
const stream = fsSync.createReadStream(file)
|
||||
.pipe(this.davClient.createWriteStream(remoteFilePath));
|
||||
|
||||
return await new Promise<string>((resolve, reject) => {
|
||||
stream.on('error', () => reject("Failed to upload file"))
|
||||
.on('finish', () => resolve(remoteFilePath));
|
||||
.on('close', () => resolve(remoteFilePath));
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user