mirror of
https://github.com/trympet/nextcloud-artifacts-action.git
synced 2025-07-18 23:59:23 +02:00
format
This commit is contained in:
@@ -47,8 +47,7 @@ export class NextcloudClient {
|
|||||||
const filePath = await this.upload(zip)
|
const filePath = await this.upload(zip)
|
||||||
core.info(`Remote file path: ${filePath}`)
|
core.info(`Remote file path: ${filePath}`)
|
||||||
return await this.shareFile(filePath)
|
return await this.shareFile(filePath)
|
||||||
}
|
} finally {
|
||||||
finally {
|
|
||||||
await fs.unlink(zip)
|
await fs.unlink(zip)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -130,7 +129,7 @@ export class NextcloudClient {
|
|||||||
const remoteFilePath = `${remoteFileDir}/${this.artifact}.zip`
|
const remoteFilePath = `${remoteFileDir}/${this.artifact}.zip`
|
||||||
core.debug(`Transferring file... (${file})`)
|
core.debug(`Transferring file... (${file})`)
|
||||||
|
|
||||||
await this.davClient.putFileContents(remoteFilePath, await fs.readFile(file));
|
await this.davClient.putFileContents(remoteFilePath, await fs.readFile(file))
|
||||||
|
|
||||||
return remoteFilePath
|
return remoteFilePath
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user