mirror of
https://github.com/redhat-actions/podman-login.git
synced 2025-02-23 10:31:21 +01:00
17 lines
488 B
TypeScript
17 lines
488 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(inputRegistry: string): void {
|
|
core.saveState("registry", inputRegistry);
|
|
}
|
|
|
|
export function setLogout(registryLogout: string): void {
|
|
core.saveState("logout", registryLogout);
|
|
}
|
|
|
|
if (!IsPost) {
|
|
core.saveState("isPost", "true");
|
|
}
|