1
0
Fork 0
mirror of https://github.com/docker/setup-buildx-action.git synced 2024-11-23 04:10:48 +00:00
setup-buildx-action/src/state-helper.ts

13 lines
317 B
TypeScript
Raw Normal View History

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