Skip to content

Commit

Permalink
refactor: version split rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
codfish committed May 23, 2020
1 parent dc0b020 commit 686d5fb
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions entrypoint.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ async function run() {

// outputs
const { version } = nextRelease;
const major = version.split('.')[0];
const minor = version.split('.')[1];
const patch = version.split('.')[2];
const [major, minor, patch] = version.split('.');

// set outputs
core.exportVariable('NEW_RELEASE_PUBLISHED', 'true');
Expand Down

0 comments on commit 686d5fb

Please sign in to comment.