Throw an error if required input is missing

This commit is contained in:
なつき 2021-10-08 05:17:19 +00:00
parent d0c6b3cf9b
commit a1fdb5a010
3 changed files with 5 additions and 5 deletions

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map vendored

File diff suppressed because one or more lines are too long

View file

@ -10,9 +10,9 @@ export interface ActionInputs {
export function getInputs(): ActionInputs {
return {
registry: core.getInput(Inputs.REGISTRY),
username: core.getInput(Inputs.USERNAME),
password: core.getInput(Inputs.PASSWORD),
registry: core.getInput(Inputs.REGISTRY, { required: true }),
username: core.getInput(Inputs.USERNAME, { required: true }),
password: core.getInput(Inputs.PASSWORD, { required: true }),
logout: core.getInput(Inputs.LOGOUT) || "true",
};
}