From e6e95c28a47060d8e36e5f7313cd8c36d8f16b71 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Tue, 23 Jul 2024 10:44:25 +0200 Subject: [PATCH] chore: move func Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com> --- src/main.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.ts b/src/main.ts index 1f14c66..9a95549 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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); +}