podman-login/src/context.ts

19 lines
476 B
TypeScript
Raw Normal View History

import * as core from "@actions/core";
import { Inputs } from "./generated/inputs-outputs";
export interface ActionInputs {
registry: string;
username: string;
password: string;
logout: string;
}
export function getInputs(): ActionInputs {
return {
registry: core.getInput(Inputs.REGISTRY),
username: core.getInput(Inputs.USERNAME),
password: core.getInput(Inputs.PASSWORD),
logout: core.getInput(Inputs.LOGOUT),
};
}