Skip to content

Commit

Permalink
fix(new_release_patch_version): fix the problem of inaccurate new_rel…
Browse files Browse the repository at this point in the history
…ease_patch_version
  • Loading branch information
cycjimmy committed Jul 2, 2020
1 parent 3c32540 commit 5da0ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windUpJob.task.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 5da0ac5

Please sign in to comment.