mirror of
https://github.com/trympet/nextcloud-artifacts-action.git
synced 2025-04-28 13:46:09 +02:00
test
This commit is contained in:
parent
71d45ee738
commit
ac058f2460
1429
dist/index.js
vendored
1429
dist/index.js
vendored
File diff suppressed because it is too large
Load Diff
@ -150,11 +150,12 @@ export class NextcloudClient {
|
|||||||
|
|
||||||
private async upload(file: string) {
|
private async upload(file: string) {
|
||||||
const remoteFileDir = `/artifacts/${this.guid}`;
|
const remoteFileDir = `/artifacts/${this.guid}`;
|
||||||
core.info("Creating directory...");
|
core.info("Checking directory...");
|
||||||
if (!(await this.davClient.exists(remoteFileDir))) {
|
if (!(await this.davClient.exists(remoteFileDir))) {
|
||||||
|
core.info("Creating directory...");
|
||||||
await this.davClient.createDirectory(remoteFileDir, { recursive: true });
|
await this.davClient.createDirectory(remoteFileDir, { recursive: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
const remoteFilePath = path.join(remoteFileDir, `${this.artifact}.zip`);
|
const remoteFilePath = path.join(remoteFileDir, `${this.artifact}.zip`);
|
||||||
core.info("Transferring file...");
|
core.info("Transferring file...");
|
||||||
fsSync.createReadStream(file)
|
fsSync.createReadStream(file)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user