diff --git a/action.yml b/action.yml index 7fc4fb5..5801727 100644 --- a/action.yml +++ b/action.yml @@ -38,6 +38,8 @@ inputs: outputs: download-path: description: 'Path of artifact download' + artifacts: + description: downloaded artifacts json array string runs: using: 'node20' main: 'dist/index.js' diff --git a/dist/index.js b/dist/index.js index 374211f..613a8df 100644 --- a/dist/index.js +++ b/dist/index.js @@ -118715,6 +118715,7 @@ var Inputs; var Outputs; (function (Outputs) { Outputs["DownloadPath"] = "download-path"; + Outputs["Artifacts"] = "artifacts"; })(Outputs || (exports.Outputs = Outputs = {})); @@ -118901,6 +118902,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'); }); } diff --git a/src/constants.ts b/src/constants.ts index b58f4e6..b2184aa 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -10,5 +10,6 @@ export enum Inputs { } export enum Outputs { - DownloadPath = 'download-path' + DownloadPath = 'download-path', + Artifacts = 'artifacts', } diff --git a/src/download-artifact.ts b/src/download-artifact.ts index 5cc6b17..3c0700d 100644 --- a/src/download-artifact.ts +++ b/src/download-artifact.ts @@ -199,6 +199,7 @@ export async function run(): Promise { } core.info(`Total of ${artifacts.length} artifact(s) downloaded`) core.setOutput(Outputs.DownloadPath, resolvedPath) + core.setOutput(Outputs.Artifacts, JSON.stringify(artifacts)); core.info('Download artifact has finished successfully') }