cleanup
parent
8ceeef4d01
commit
b41dcc96e0
|
@ -129488,9 +129488,11 @@ function run() {
|
||||||
artifacts.forEach(artifact => {
|
artifacts.forEach(artifact => {
|
||||||
core.info(`- ${artifact.name} (ID: ${artifact.id}, Size: ${artifact.size})`);
|
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)
|
? path.join(tmpDir, artifact.name)
|
||||||
: tmpDir })));
|
: tmpDir
|
||||||
|
}));
|
||||||
const chunkedPromises = (0, exports.chunk)(downloadPromises, PARALLEL_DOWNLOADS);
|
const chunkedPromises = (0, exports.chunk)(downloadPromises, PARALLEL_DOWNLOADS);
|
||||||
for (const chunk of chunkedPromises) {
|
for (const chunk of chunkedPromises) {
|
||||||
yield Promise.all(chunk);
|
yield Promise.all(chunk);
|
||||||
|
|
|
@ -45,7 +45,6 @@ async function run(): Promise<void> {
|
||||||
|
|
||||||
const downloadPromises = artifacts.map(artifact =>
|
const downloadPromises = artifacts.map(artifact =>
|
||||||
artifactClient.downloadArtifact(artifact.id, {
|
artifactClient.downloadArtifact(artifact.id, {
|
||||||
...options,
|
|
||||||
path: inputs.separateDirectories
|
path: inputs.separateDirectories
|
||||||
? path.join(tmpDir, artifact.name)
|
? path.join(tmpDir, artifact.name)
|
||||||
: tmpDir
|
: tmpDir
|
||||||
|
|
Loading…
Reference in New Issue