mirror of
https://github.com/docker/login-action.git
synced 2026-01-18 22:09:05 +08:00
13 lines
415 B
TypeScript
13 lines
415 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.info(`Setting registry: ${registry.join(',')}`);
|
|
core.saveState('registry', registry.join(','));
|
|
}
|
|
|
|
export function setLogout(logout: boolean) {
|
|
core.saveState('logout', logout);
|
|
}
|