5
0
Fork 0
mirror of https://github.com/cycjimmy/semantic-release-action.git synced 2025-11-07 10:46: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:
heiko.rothe 2022-08-01 12:30:51 +02:00
parent ccac67441a
commit 4a51b9fada
No known key found for this signature in database
GPG key ID: F262BF87031AC630

View file

@ -68,7 +68,11 @@ exports.handleExtends = () => {
const extend = core.getInput(inputs.extends); const extend = core.getInput(inputs.extends);
if (extend) { if (extend) {
return { extends: extend }; const extendModuleNames = extend.split(/\r?\n/)
.map((name) => name.replace(/(?<!^)@.+/, ''))
return {
extends: extendModuleNames
};
} else { } else {
return {}; return {};
} }