mirror of
https://code.forgejo.org/actions/download-artifact
synced 2025-06-08 04:58:20 +02:00
Merge 5a52bf4756
into d3f86a106a
This commit is contained in:
commit
055cd6849c
4 changed files with 7 additions and 1 deletions
|
@ -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 = {}));
|
||||
|
||||
|
||||
|
@ -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');
|
||||
});
|
||||
}
|
||||
|
|
|
@ -10,5 +10,6 @@ export enum Inputs {
|
|||
}
|
||||
|
||||
export enum Outputs {
|
||||
DownloadPath = 'download-path'
|
||||
DownloadPath = 'download-path',
|
||||
Artifacts = 'artifacts',
|
||||
}
|
||||
|
|
|
@ -199,6 +199,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…
Add table
Add a link
Reference in a new issue