feat: add ci input parameter

This commit is contained in:
Aram Becker 2023-03-06 13:09:48 +01:00
parent 9a76e06dfe
commit b356b18b5f
5 changed files with 44 additions and 0 deletions

View file

@ -60,6 +60,25 @@ exports.handleDryRunOption = () => {
}
};
/**
* Handle Ci Option
* @returns {{}|{ci: boolean}}
*/
exports.handleCiOption = () => {
const ci = core.getInput(inputs.ci);
switch (ci) {
case 'true':
return { ci: true, noCi: false };
case 'false':
return { ci: false, noCi: true };
default:
return {};
}
};
/**
* Handle Extends Option
* @returns {{}|{extends: Array}|{extends: String}}