1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/upload-artifact.git synced 2024-11-08 18:32:40 +00:00
This commit is contained in:
Rob Herley 2024-01-19 11:46:09 -05:00
parent 8ceeef4d01
commit b41dcc96e0
No known key found for this signature in database
GPG key ID: D1602042C3543B06
2 changed files with 4 additions and 3 deletions

6
dist/merge/index.js vendored
View file

@ -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);

View file

@ -45,7 +45,6 @@ async function run(): Promise<void> {
const downloadPromises = artifacts.map(artifact =>
artifactClient.downloadArtifact(artifact.id, {
...options,
path: inputs.separateDirectories
? path.join(tmpDir, artifact.name)
: tmpDir