mirror of
https://github.com/redhat-actions/podman-login.git
synced 2025-02-23 10:31:21 +01:00
Throw an error if required input is missing (#9)
This commit is contained in:
parent
d0c6b3cf9b
commit
44ca406dd4
3 changed files with 5 additions and 5 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -10,9 +10,9 @@ export interface ActionInputs {
|
||||||
|
|
||||||
export function getInputs(): ActionInputs {
|
export function getInputs(): ActionInputs {
|
||||||
return {
|
return {
|
||||||
registry: core.getInput(Inputs.REGISTRY),
|
registry: core.getInput(Inputs.REGISTRY, { required: true }),
|
||||||
username: core.getInput(Inputs.USERNAME),
|
username: core.getInput(Inputs.USERNAME, { required: true }),
|
||||||
password: core.getInput(Inputs.PASSWORD),
|
password: core.getInput(Inputs.PASSWORD, { required: true }),
|
||||||
logout: core.getInput(Inputs.LOGOUT) || "true",
|
logout: core.getInput(Inputs.LOGOUT) || "true",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue