mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2026-04-12 01:30:05 +00:00
Merge pull request #153 from 1nVitr0/main
feat: add `ci` input parameter
This commit is contained in:
commit
039e6080a2
5 changed files with 44 additions and 0 deletions
|
|
@ -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}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue