mirror of
https://github.com/docker/setup-buildx-action
synced 2024-11-25 11:51:42 +00:00
5b1c96aee8
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
22 lines
635 B
TypeScript
22 lines
635 B
TypeScript
import * as core from '@actions/core';
|
|
|
|
export const IsPost = !!process.env['STATE_isPost'];
|
|
export const IsDebug = !!process.env['STATE_isDebug'];
|
|
export const builderName = process.env['STATE_builderName'] || '';
|
|
export const containerName = process.env['STATE_containerName'] || '';
|
|
|
|
export function setDebug(debug: string) {
|
|
core.saveState('isDebug', debug);
|
|
}
|
|
|
|
export function setBuilderName(builderName: string) {
|
|
core.saveState('builderName', builderName);
|
|
}
|
|
|
|
export function setContainerName(containerName: string) {
|
|
core.saveState('containerName', containerName);
|
|
}
|
|
|
|
if (!IsPost) {
|
|
core.saveState('isPost', 'true');
|
|
}
|