1
0
Fork 0
mirror of https://code.forgejo.org/actions/download-artifact synced 2025-06-08 04:58:20 +02:00
This commit is contained in:
phuong 2025-04-30 22:27:36 +00:00 committed by GitHub
commit 055cd6849c
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:
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
View file

@ -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');
});
}

View file

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

View file

@ -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')
}