mirror of
https://github.com/cycjimmy/semantic-release-action.git
synced 2026-04-08 16:20:05 +00:00
feat(outputs): add new_release_channel
This commit is contained in:
parent
606b318c9c
commit
ae40dc6658
6 changed files with 10 additions and 2 deletions
|
|
@ -4,5 +4,6 @@
|
|||
"new_release_major_version": "new_release_major_version",
|
||||
"new_release_minor_version": "new_release_minor_version",
|
||||
"new_release_patch_version": "new_release_patch_version",
|
||||
"new_release_channel": "new_release_channel",
|
||||
"new_release_notes": "new_release_notes"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ module.exports = async (result) => {
|
|||
core.debug(`The release was published with plugin "${release.pluginName}".`);
|
||||
}
|
||||
|
||||
const {version, notes} = nextRelease;
|
||||
const {version, channel, notes} = nextRelease;
|
||||
const [major, minor, patch] = version.split(/\.|-|\s/g, 3);
|
||||
|
||||
// set outputs
|
||||
|
|
@ -33,5 +33,6 @@ module.exports = async (result) => {
|
|||
core.setOutput(outputs.new_release_major_version, major);
|
||||
core.setOutput(outputs.new_release_minor_version, minor);
|
||||
core.setOutput(outputs.new_release_patch_version, patch);
|
||||
core.setOutput(outputs.new_release_channel, channel);
|
||||
core.setOutput(outputs.new_release_notes, notes);
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue