mirror of
https://github.com/actions/download-artifact.git
synced 2025-08-15 21:25:09 +00:00
Merge 5a52bf4756355f118dcbe978a2f8c2bf0f0fc0a9 into de96f4613b77ec03b5cf633e7c350c32bd3c5660
This commit is contained in:
commit
12088cd357
@ -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'
|
||||
|
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -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');
|
||||
});
|
||||
}
|
||||
|
@ -10,5 +10,6 @@ export enum Inputs {
|
||||
}
|
||||
|
||||
export enum Outputs {
|
||||
DownloadPath = 'download-path'
|
||||
DownloadPath = 'download-path',
|
||||
Artifacts = 'artifacts',
|
||||
}
|
||||
|
@ -201,6 +201,7 @@ export 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…
x
Reference in New Issue
Block a user