From 5da0ac558eb3a3a8eb75460ff9bd55cb1217da2d Mon Sep 17 00:00:00 2001 From: cycjimmy Date: Thu, 2 Jul 2020 14:44:00 +0800 Subject: [PATCH] fix(new_release_patch_version): fix the problem of inaccurate new_release_patch_version --- src/windUpJob.task.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windUpJob.task.js b/src/windUpJob.task.js index 0f8a0ae..17e1d7d 100644 --- a/src/windUpJob.task.js +++ b/src/windUpJob.task.js @@ -25,7 +25,7 @@ module.exports = async (result) => { } const {version, notes} = nextRelease; - const [major, minor, patch] = version.split('.'); + const [major, minor, patch] = version.split(/\.|-|\s/g, 3); // set outputs core.setOutput(outputs.new_release_published, 'true');