mirror of
https://github.com/trympet/nextcloud-artifacts-action.git
synced 2025-04-24 20:16:08 +02:00
fix directory exists
This commit is contained in:
parent
83cbe577f4
commit
e96c1262aa
846
dist/index.js
vendored
846
dist/index.js
vendored
File diff suppressed because it is too large
Load Diff
@ -105,7 +105,7 @@ export class NextcloudClient {
|
||||
private async zipFiles(specs: FileSpec[]): Promise<string> {
|
||||
const tempArtifactDir = path.join(os.tmpdir(), this.guid);
|
||||
const artifactPath = path.join(tempArtifactDir, `artifact-${this.artifact}`);
|
||||
await fs.mkdir(artifactPath, { recursive: true });
|
||||
await fs.mkdir(path.join(artifactPath, this.artifact), { recursive: true });
|
||||
for (let spec of specs) {
|
||||
await fs.copyFile(spec.absolutePath, path.join(artifactPath, spec.uploadPath));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user