3
0
Fork 0
mirror of https://gitea.com/docker/login-action.git synced 2024-11-26 03:19:37 +01:00
docker-login/src/state-helper.ts
CrazyMax af023e8f62
switch to actions-toolkit implementation
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-02-24 10:16:56 +01:00

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);
}