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 f9d5a30..7c7f4ea 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 = {})); @@ -118903,6 +118904,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 6f2d782..87e4ac4 100644 --- a/src/download-artifact.ts +++ b/src/download-artifact.ts @@ -201,6 +201,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') }