mirror of
https://github.com/trympet/nextcloud-artifacts-action.git
synced 2025-07-13 05:35:38 +02:00
tesst
This commit is contained in:
@ -168,16 +168,12 @@ export class NextcloudClient {
|
||||
const remoteStream = this.davClient.createWriteStream(remoteFilePath, {
|
||||
headers: { 'Content-Length': fileStat.size.toString() }
|
||||
})
|
||||
const reamteStreamPromise = new Promise<void>((resolve, reject) => {
|
||||
remoteStream.on('error', e => reject(e)).on('finish', () => resolve())
|
||||
})
|
||||
|
||||
fileStream.pipe(remoteStream)
|
||||
|
||||
// see: https://github.com/nodejs/node/issues/22088
|
||||
const timer = setTimeout(() => {}, 20_000);
|
||||
await fileStreamPromise
|
||||
await reamteStreamPromise
|
||||
|
||||
clearTimeout(timer);
|
||||
return remoteFilePath
|
||||
|
Reference in New Issue
Block a user