2020-08-18 17:40:31 +02:00
|
|
|
import * as core from '@actions/core';
|
|
|
|
|
2021-04-23 22:08:40 +02:00
|
|
|
export const IsDebug = !!process.env['STATE_isDebug'];
|
2023-03-03 11:56:21 +01:00
|
|
|
export const standalone = /true/i.test(process.env['STATE_standalone'] || '');
|
2020-08-18 17:40:31 +02:00
|
|
|
export const builderName = process.env['STATE_builderName'] || '';
|
2023-03-03 13:46:26 +01:00
|
|
|
export const builderDriver = process.env['STATE_builderDriver'] || '';
|
2021-04-23 22:08:40 +02:00
|
|
|
export const containerName = process.env['STATE_containerName'] || '';
|
2023-02-19 02:12:29 +01:00
|
|
|
export const certsDir = process.env['STATE_certsDir'] || '';
|
2023-03-03 11:56:21 +01:00
|
|
|
export const cleanup = /true/i.test(process.env['STATE_cleanup'] || '');
|
2021-04-23 22:08:40 +02:00
|
|
|
|
|
|
|
export function setDebug(debug: string) {
|
|
|
|
core.saveState('isDebug', debug);
|
|
|
|
}
|
2020-08-18 17:40:31 +02:00
|
|
|
|
2022-04-17 17:22:03 +02:00
|
|
|
export function setStandalone(standalone: boolean) {
|
|
|
|
core.saveState('standalone', standalone);
|
|
|
|
}
|
|
|
|
|
2020-08-18 17:40:31 +02:00
|
|
|
export function setBuilderName(builderName: string) {
|
|
|
|
core.saveState('builderName', builderName);
|
|
|
|
}
|
|
|
|
|
2023-03-03 13:46:26 +01:00
|
|
|
export function setBuilderDriver(builderDriver: string) {
|
|
|
|
core.saveState('builderDriver', builderDriver);
|
|
|
|
}
|
|
|
|
|
2021-04-23 22:08:40 +02:00
|
|
|
export function setContainerName(containerName: string) {
|
|
|
|
core.saveState('containerName', containerName);
|
|
|
|
}
|
|
|
|
|
2023-02-19 02:12:29 +01:00
|
|
|
export function setCertsDir(certsDir: string) {
|
|
|
|
core.saveState('certsDir', certsDir);
|
2020-08-18 17:40:31 +02:00
|
|
|
}
|
2023-03-03 11:56:21 +01:00
|
|
|
|
|
|
|
export function setCleanup(cleanup: boolean) {
|
|
|
|
core.saveState('cleanup', cleanup);
|
|
|
|
}
|