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
1 changed files with 5 additions and 5 deletions

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