docker-login/src/state-helper.ts

13 lines
347 B
TypeScript
Raw Normal View History

2020-08-15 08:45:36 -04:00
import * as core from '@actions/core';
export const registry = process.env['STATE_registry'] || '';
export const logout = /true/i.test(process.env['STATE_logout'] || '');
export function setRegistry(registry: string) {
core.saveState('registry', registry);
}
export function setLogout(logout: boolean) {
2020-08-15 08:45:36 -04:00
core.saveState('logout', logout);
}