Set Output downloaded artifacts (json string)

This commit is contained in:
phuong 2024-09-20 17:14:36 +07:00
parent fa0a91b85d
commit 5a52bf4756
4 changed files with 7 additions and 1 deletions

2
dist/index.js vendored
View file

@ -120477,6 +120477,7 @@ var Inputs;
var Outputs;
(function (Outputs) {
Outputs["DownloadPath"] = "download-path";
Outputs["Artifacts"] = "artifacts";
})(Outputs || (exports.Outputs = Outputs = {}));
@ -120612,6 +120613,7 @@ function run() {
}
core.info(`Total of ${artifacts.length} artifact(s) downloaded`);
core.setOutput(constants_1.Outputs.DownloadPath, resolvedPath);
core.setOutput(constants_1.Outputs.Artifacts, JSON.stringify(artifacts));
core.info('Download artifact has finished successfully');
});
}