mirror of
https://github.com/docker/login-action.git
synced 2024-11-22 00:10:57 -05:00
af023e8f62
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
12 lines
347 B
TypeScript
12 lines
347 B
TypeScript
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) {
|
|
core.saveState('logout', logout);
|
|
}
|