From b41dcc96e07089e871b957338ce945beeb8c4e09 Mon Sep 17 00:00:00 2001 From: Rob Herley Date: Fri, 19 Jan 2024 11:46:09 -0500 Subject: [PATCH] cleanup --- dist/merge/index.js | 6 ++++-- src/merge/index.ts | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dist/merge/index.js b/dist/merge/index.js index 0812a83..dd0150e 100644 --- a/dist/merge/index.js +++ b/dist/merge/index.js @@ -129488,9 +129488,11 @@ function run() { artifacts.forEach(artifact => { core.info(`- ${artifact.name} (ID: ${artifact.id}, Size: ${artifact.size})`); }); - const downloadPromises = artifacts.map(artifact => artifact_1.default.downloadArtifact(artifact.id, Object.assign(Object.assign({}, options), { path: inputs.separateDirectories + const downloadPromises = artifacts.map(artifact => artifact_1.default.downloadArtifact(artifact.id, { + path: inputs.separateDirectories ? path.join(tmpDir, artifact.name) - : tmpDir }))); + : tmpDir + })); const chunkedPromises = (0, exports.chunk)(downloadPromises, PARALLEL_DOWNLOADS); for (const chunk of chunkedPromises) { yield Promise.all(chunk); diff --git a/src/merge/index.ts b/src/merge/index.ts index 83e4367..44560f2 100644 --- a/src/merge/index.ts +++ b/src/merge/index.ts @@ -45,7 +45,6 @@ async function run(): Promise { const downloadPromises = artifacts.map(artifact => artifactClient.downloadArtifact(artifact.id, { - ...options, path: inputs.separateDirectories ? path.join(tmpDir, artifact.name) : tmpDir