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
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) {
|
||||
const remoteFileDir = `/artifacts/${this.guid}`;
|
||||
core.info("Creating directory...");
|
||||
core.info("Checking directory...");
|
||||
if (!(await this.davClient.exists(remoteFileDir))) {
|
||||
core.info("Creating directory...");
|
||||
await this.davClient.createDirectory(remoteFileDir, { recursive: true });
|
||||
}
|
||||
|
||||
|
||||
const remoteFilePath = path.join(remoteFileDir, `${this.artifact}.zip`);
|
||||
core.info("Transferring file...");
|
||||
fsSync.createReadStream(file)
|
||||
|
Loading…
x
Reference in New Issue
Block a user