Skip to content

Commit

Permalink
fix: fix support for go beta releases
Browse files Browse the repository at this point in the history
closes actions#96
  • Loading branch information
pjvds committed Jan 19, 2021
1 parent 3b4dc6c commit 47c77be
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5192,7 +5192,6 @@ exports.getVersionsDist = getVersionsDist;
// 1.8.5beta1 => 1.8.5-beta1, 1.8.5rc1 => 1.8.5-rc1
function makeSemver(version) {
version = version.replace('go', '');
version = version.replace('beta', '-beta').replace('rc', '-rc');
let parts = version.split('-');
let verPart = parts[0];
let prereleasePart = parts.length > 1 ? `-${parts[1]}` : '';
Expand Down

0 comments on commit 47c77be

Please sign in to comment.