mirror of
https://github.com/actions/download-artifact.git
synced 2024-12-23 11:55:28 +00:00
Set Output downloaded artifacts (json string)
This commit is contained in:
parent
fa0a91b85d
commit
5a52bf4756
@ -35,6 +35,8 @@ inputs:
|
||||
outputs:
|
||||
download-path:
|
||||
description: 'Path of artifact download'
|
||||
artifacts:
|
||||
description: downloaded artifacts json array string
|
||||
runs:
|
||||
using: 'node20'
|
||||
main: 'dist/index.js'
|
||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -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');
|
||||
});
|
||||
}
|
||||
|
@ -9,5 +9,6 @@ export enum Inputs {
|
||||
}
|
||||
|
||||
export enum Outputs {
|
||||
DownloadPath = 'download-path'
|
||||
DownloadPath = 'download-path',
|
||||
Artifacts = 'artifacts',
|
||||
}
|
||||
|
@ -128,6 +128,7 @@ async function run(): Promise<void> {
|
||||
|
||||
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')
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user