mirror of
https://github.com/redhat-actions/podman-login.git
synced 2025-06-08 02:29:03 +00:00
Modify action.yml
Signed-off-by: divyansh42 <diagrawa@redhat.com>
This commit is contained in:
parent
6c4ab503eb
commit
005af2ac0e
8 changed files with 23 additions and 27 deletions
|
@ -1,19 +1,15 @@
|
|||
import * as core from "@actions/core";
|
||||
|
||||
/* 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 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-next-line @typescript-eslint/no-shadow
|
||||
export function setRegistry(registry: string): void {
|
||||
core.saveState("registry", registry);
|
||||
export function setRegistry(inputRegistry: string): void {
|
||||
core.saveState("registry", inputRegistry);
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-shadow
|
||||
export function setLogout(logout: string): void {
|
||||
core.saveState("logout", logout);
|
||||
export function setLogout(registryLogout: string): void {
|
||||
core.saveState("logout", registryLogout);
|
||||
}
|
||||
|
||||
if (!IsPost) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue