Skip to content

Commit

Permalink
fix: use correct V8 tag for major updates (#675)
Browse files Browse the repository at this point in the history
Sometimes there might be additional tags with suffix such as `-pgo`
  • Loading branch information
targos authored Feb 27, 2023
1 parent a832a1b commit ebcf18e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/update-v8/majorUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function checkoutBranch() {
'--sort',
'version:refname'
);
const tags = res.stdout.split('\n');
const tags = res.stdout.split('\n').filter(tag => versionReg.test(tag));
const lastTag = tags[tags.length - 1];
if (lastTag) version = lastTag;
if (version.split('.').length === 3) {
Expand Down

0 comments on commit ebcf18e

Please sign in to comment.