feat: add 'cmds' input

Signed-off-by: João Fernandes <joaofnds@joaofnds.com>
This commit is contained in:
João Fernandes 2022-04-12 18:38:32 -03:00
parent d1bb14ca11
commit 056e107b22
No known key found for this signature in database
GPG key ID: 064E0BACE9889F9C
6 changed files with 47 additions and 11 deletions

View file

@ -6,6 +6,7 @@ export interface Inputs {
args: string;
installOnly: boolean;
cleanup: boolean;
cmds: string[];
}
export async function getInputs(): Promise<Inputs> {
@ -14,7 +15,8 @@ export async function getInputs(): Promise<Inputs> {
workdir: core.getInput('workdir') || '.',
args: core.getInput('args'),
installOnly: core.getBooleanInput('install-only'),
cleanup: core.getBooleanInput('cleanup')
cleanup: core.getBooleanInput('cleanup'),
cmds: await getInputList('cmds')
};
}