mirror of
https://github.com/redhat-actions/podman-login.git
synced 2025-02-23 18:41:21 +01:00
18 lines
465 B
TypeScript
18 lines
465 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: string) {
|
||
|
core.saveState('logout', logout);
|
||
|
}
|
||
|
|
||
|
if (!IsPost) {
|
||
|
core.saveState('isPost', 'true');
|
||
|
}
|