mirror of
https://github.com/actions/download-artifact.git
synced 2025-07-26 00:18:30 +02:00
Update release
This commit is contained in:
parent
bdc1124b30
commit
9994975c77
1 changed files with 10 additions and 3 deletions
13
dist/index.js
vendored
13
dist/index.js
vendored
|
@ -2082,14 +2082,21 @@ function run() {
|
||||||
const artifactClient = artifact.create();
|
const artifactClient = artifact.create();
|
||||||
if (!name) {
|
if (!name) {
|
||||||
// download all artifacts
|
// download all artifacts
|
||||||
yield artifactClient.downloadAllArtifacts(path);
|
const downloadResponse = yield artifactClient.downloadAllArtifacts(path);
|
||||||
|
core.info(`There were ${downloadResponse.length} artifacts downloaded`);
|
||||||
|
for (const artifact of downloadResponse) {
|
||||||
|
core.info(`Artifact ${artifact.artifactName} was downloaded to ${artifact.downloadPath}`);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// download a single artifact
|
// download a single artifact
|
||||||
yield artifactClient.downloadArtifact(name, path, {
|
const downloadOptions = {
|
||||||
createArtifactFolder: false
|
createArtifactFolder: false
|
||||||
});
|
};
|
||||||
|
const downloadResponse = yield artifactClient.downloadArtifact(name, path, downloadOptions);
|
||||||
|
core.info(`Artifact ${downloadResponse.artifactName} was downloaded to ${downloadResponse.downloadPath}`);
|
||||||
}
|
}
|
||||||
|
core.info('Artifact download has finished successfully');
|
||||||
}
|
}
|
||||||
catch (err) {
|
catch (err) {
|
||||||
core.setFailed(err.message);
|
core.setFailed(err.message);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue