mirror of
https://github.com/trympet/nextcloud-artifacts-action.git
synced 2025-04-28 13:46:09 +02:00
fix path format
This commit is contained in:
parent
2431c40b14
commit
5b01b7a17b
1430
dist/index.js
vendored
1430
dist/index.js
vendored
File diff suppressed because it is too large
Load Diff
@ -157,7 +157,7 @@ export class NextcloudClient {
|
|||||||
await this.davClient.createDirectory(remoteFileDir, { recursive: true });
|
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...");
|
core.info("Transferring file...");
|
||||||
const stream = fsSync.createReadStream(file)
|
const stream = fsSync.createReadStream(file)
|
||||||
.pipe(this.davClient.createWriteStream(remoteFilePath));
|
.pipe(this.davClient.createWriteStream(remoteFilePath));
|
||||||
@ -183,6 +183,6 @@ export class NextcloudClient {
|
|||||||
body: JSON.stringify(body),
|
body: JSON.stringify(body),
|
||||||
});
|
});
|
||||||
|
|
||||||
core.debug(await res.text())
|
core.info(await res.text())
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user