mirror of
https://github.com/docker/login-action.git
synced 2025-06-08 13:41:48 +02:00
Refactor
This commit is contained in:
parent
26618cd0df
commit
2c57607524
4 changed files with 251 additions and 105 deletions
17
src/context.ts
Normal file
17
src/context.ts
Normal file
|
@ -0,0 +1,17 @@
|
|||
import * as core from '@actions/core';
|
||||
|
||||
export interface Inputs {
|
||||
registry: string;
|
||||
username: string;
|
||||
password: string;
|
||||
logout: string;
|
||||
}
|
||||
|
||||
export async function getInputs(): Promise<Inputs> {
|
||||
return {
|
||||
registry: core.getInput('registry'),
|
||||
username: core.getInput('username'),
|
||||
password: core.getInput('password', {required: true}),
|
||||
logout: core.getInput('logout')
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue