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
1f2878a134
commit
6226379dbd
1432
dist/index.js
vendored
1432
dist/index.js
vendored
File diff suppressed because it is too large
Load Diff
@ -167,11 +167,13 @@ export class NextcloudClient {
|
|||||||
fsSync.createReadStream(file)
|
fsSync.createReadStream(file)
|
||||||
.pipe(stream);
|
.pipe(stream);
|
||||||
|
|
||||||
return await new Promise<string>((resolve, reject) => {
|
await new Promise<void>((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());
|
||||||
});
|
});
|
||||||
|
core.info("finish");
|
||||||
|
return remoteFilePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
private async shareFile(remoteFilePath: string) {
|
private async shareFile(remoteFilePath: string) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user