mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2025-11-07 18:56:56 +00:00
feat: handle versioned extends inputs correctly
In some cases, you may want to provide a version for the config you want to extend. This change will now pass the correct format for such a case down to semantic-release.
This commit is contained in:
parent
ccac67441a
commit
4a51b9fada
1 changed files with 5 additions and 1 deletions
|
|
@ -68,7 +68,11 @@ exports.handleExtends = () => {
|
|||
const extend = core.getInput(inputs.extends);
|
||||
|
||||
if (extend) {
|
||||
return { extends: extend };
|
||||
const extendModuleNames = extend.split(/\r?\n/)
|
||||
.map((name) => name.replace(/(?<!^)@.+/, ''))
|
||||
return {
|
||||
extends: extendModuleNames
|
||||
};
|
||||
} else {
|
||||
return {};
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue