3
0
Fork 0
mirror of https://gitea.com/docker/build-push-action.git synced 2024-11-26 03:19:40 +01:00
docker-build-push/setup-buildx/src/state-helper.ts
CrazyMax c3b8f61f90
Improve stateHelper
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-08-12 23:10:28 +02:00

12 lines
313 B
TypeScript

import * as core from '@actions/core';
export const IsPost = !!process.env['STATE_isPost'];
export const builderName = !!process.env['STATE_builderName'];
export function setBuilderName(builderName: string) {
core.saveState('builderName', builderName);
}
if (!IsPost) {
core.saveState('isPost', 'true');
}