mirror of
https://github.com/redhat-actions/podman-login.git
synced 2025-02-23 18:41:21 +01:00
18 lines
486 B
TypeScript
18 lines
486 B
TypeScript
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) || "true",
|
|
};
|
|
}
|