Merge 5a52bf4756355f118dcbe978a2f8c2bf0f0fc0a9 into f093f21ca4cfa7c75ccbbc2be54da76a0c7e1f05

This commit is contained in:
phuong 2025-11-14 08:42:58 -05:00 committed by GitHub
commit 8f0dfd0528
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 7 additions and 1 deletions

View File

@ -38,6 +38,8 @@ inputs:
outputs: outputs:
download-path: download-path:
description: 'Path of artifact download' description: 'Path of artifact download'
artifacts:
description: downloaded artifacts json array string
runs: runs:
using: 'node20' using: 'node20'
main: 'dist/index.js' main: 'dist/index.js'

2
dist/index.js vendored
View File

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

View File

@ -10,5 +10,6 @@ export enum Inputs {
} }
export enum Outputs { export enum Outputs {
DownloadPath = 'download-path' DownloadPath = 'download-path',
Artifacts = 'artifacts',
} }

View File

@ -201,6 +201,7 @@ export async function run(): Promise<void> {
} }
core.info(`Total of ${artifacts.length} artifact(s) downloaded`) core.info(`Total of ${artifacts.length} artifact(s) downloaded`)
core.setOutput(Outputs.DownloadPath, resolvedPath) core.setOutput(Outputs.DownloadPath, resolvedPath)
core.setOutput(Outputs.Artifacts, JSON.stringify(artifacts));
core.info('Download artifact has finished successfully') core.info('Download artifact has finished successfully')
} }