2020-08-20 16:40:33 +02:00
|
|
|
import * as core from '@actions/core';
|
|
|
|
|
|
|
|
export interface Inputs {
|
|
|
|
registry: string;
|
|
|
|
username: string;
|
|
|
|
password: string;
|
2021-12-20 10:59:11 +01:00
|
|
|
ecr: string;
|
2021-06-22 10:39:55 +02:00
|
|
|
logout: boolean;
|
2020-08-20 16:40:33 +02:00
|
|
|
}
|
|
|
|
|
2020-10-09 12:30:45 +02:00
|
|
|
export function getInputs(): Inputs {
|
2020-08-20 16:40:33 +02:00
|
|
|
return {
|
|
|
|
registry: core.getInput('registry'),
|
2020-10-20 14:41:56 +02:00
|
|
|
username: core.getInput('username'),
|
|
|
|
password: core.getInput('password'),
|
2021-12-20 10:59:11 +01:00
|
|
|
ecr: core.getInput('ecr'),
|
2021-06-22 10:39:55 +02:00
|
|
|
logout: core.getBooleanInput('logout')
|
2020-08-20 16:40:33 +02:00
|
|
|
};
|
|
|
|
}
|