mirror of
https://github.com/docker/login-action.git
synced 2026-05-01 09:40:40 +03:00
9fc23e88e3
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
13 lines
371 B
TypeScript
13 lines
371 B
TypeScript
import * as core from '@actions/core';
|
|
|
|
export const registries = process.env['STATE_registries'] || '';
|
|
export const logout = /true/i.test(process.env['STATE_logout'] || '');
|
|
|
|
export function setRegistries(registries: string[]) {
|
|
core.saveState('registries', registries.join(','));
|
|
}
|
|
|
|
export function setLogout(logout: boolean) {
|
|
core.saveState('logout', logout);
|
|
}
|