3
0
Fork 0
mirror of https://gitea.com/docker/metadata-action.git synced 2024-11-21 11:39:33 +01:00

chore: move func

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2024-07-23 10:44:25 +02:00
parent 9ec63a7555
commit e6e95c28a4
No known key found for this signature in database
GPG key ID: ADE44D8C9D44FBE4

View file

@ -6,11 +6,6 @@ import {Toolkit} from '@docker/actions-toolkit/lib/toolkit';
import {getContext, getInputs, Inputs} from './context';
import {Meta, Version} from './meta';
function setOutput(name: string, value: string) {
core.setOutput(name, value);
core.exportVariable(`DOCKER_METADATA_OUTPUT_${name.replace(/\W/g, '_').toUpperCase()}`, value);
}
actionsToolkit.run(
// main
async () => {
@ -108,3 +103,8 @@ actionsToolkit.run(
setOutput(`bake-file`, `${meta.getBakeFileTagsLabels()}`);
}
);
function setOutput(name: string, value: string) {
core.setOutput(name, value);
core.exportVariable(`DOCKER_METADATA_OUTPUT_${name.replace(/\W/g, '_').toUpperCase()}`, value);
}