mirror of
https://github.com/redhat-actions/podman-login.git
synced 2025-06-08 02:29:03 +00:00
Update code
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
1b6468c894
commit
6c4ab503eb
8 changed files with 38 additions and 46 deletions
|
@ -1,17 +1,21 @@
|
|||
import * as core from '@actions/core';
|
||||
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'] || '');
|
||||
/* eslint-disable dot-notation */
|
||||
export const IsPost = !!process.env["STATE_isPost"];
|
||||
export const registry = process.env["STATE_registry"] || "";
|
||||
export const logout = /true/i.test(process.env["STATE_logout"] || "");
|
||||
/* eslint-enable dot-notation */
|
||||
|
||||
// export function setRegistry(registry: string) {
|
||||
// core.saveState('registry', registry);
|
||||
// }
|
||||
// eslint-disable-next-line @typescript-eslint/no-shadow
|
||||
export function setRegistry(registry: string): void {
|
||||
core.saveState("registry", registry);
|
||||
}
|
||||
|
||||
export function setLogout(logout: string) {
|
||||
core.saveState('logout', logout);
|
||||
// eslint-disable-next-line @typescript-eslint/no-shadow
|
||||
export function setLogout(logout: string): void {
|
||||
core.saveState("logout", logout);
|
||||
}
|
||||
|
||||
if (!IsPost) {
|
||||
core.saveState('isPost', 'true');
|
||||
core.saveState("isPost", "true");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue