File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -505,7 +505,8 @@ async function getToolSemver(data) {
505505 return data [ 'version' ] ;
506506 }
507507 else {
508- return JSON . parse ( response [ 'data' ] ) . pop ( ) [ 'ref' ] . split ( '/' ) . pop ( ) ;
508+ const tag = JSON . parse ( response [ 'data' ] ) . pop ( ) [ 'ref' ] . split ( '/' ) . pop ( ) ;
509+ return tag . replace ( / ^ v ( \d ) / , '$1' ) ;
509510 }
510511}
511512exports . getToolSemver = getToolSemver ;
Original file line number Diff line number Diff line change @@ -11,7 +11,8 @@ export async function getToolSemver(
1111 data [ 'error' ] = response . error ?? `No version found with prefix ${ ref } .` ;
1212 return data [ 'version' ] ;
1313 } else {
14- return JSON . parse ( response [ 'data' ] ) . pop ( ) [ 'ref' ] . split ( '/' ) . pop ( ) ;
14+ const tag = JSON . parse ( response [ 'data' ] ) . pop ( ) [ 'ref' ] . split ( '/' ) . pop ( ) ;
15+ return tag . replace ( / ^ v ( \d ) / , '$1' ) ;
1516 }
1617}
1718
You can’t perform that action at this time.
0 commit comments