Skip to content

Commit

Permalink
chore: move func
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
  • Loading branch information
CrazyMax committed Jul 23, 2024
1 parent 9ec63a7 commit e6e95c2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -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);
}

0 comments on commit e6e95c2

Please sign in to comment.