mirror of
https://github.com/docker/login-action.git
synced 2025-08-16 12:45:49 +08:00
Refactor
This commit is contained in:
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')
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user