mirror of
https://gitea.com/docker/login-action.git
synced 2024-11-22 17:39:35 +01:00
4fd5d8ead6
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
17 lines
454 B
TypeScript
17 lines
454 B
TypeScript
import * as core from '@actions/core';
|
|
|
|
export const IsPost = !!process.env['STATE_isPost'];
|
|
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);
|
|
}
|
|
|
|
if (!IsPost) {
|
|
core.saveState('isPost', 'true');
|
|
}
|